Document populate type is returning an ObjectId & PopulatedType
#11955
Labels
typescript
Types or Types-test related issue / Pull Request
Milestone
Prerequisites
Mongoose version
6.3.4
Node.js version
14.18
MongoDB server version
4.5.0
Description
I have an issue with
document.populate
where it always returns an intersection of objectId & the populated types itself and find it weird that it is not an issue forquery.populate
but maybe because you useUnpackIntersection
.Steps to Reproduce
TS playground
Expected Behavior
I'm expecting it to return just the populated document type and not to have ObjectId
The text was updated successfully, but these errors were encountered: