-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
typescriptTypes or Types-test related issue / Pull RequestTypes or Types-test related issue / Pull Request
Milestone
Description
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the bug has not already been reported
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 for query.populate but maybe because you use UnpackIntersection.
Steps to Reproduce
Expected Behavior
I'm expecting it to return just the populated document type and not to have ObjectId
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
typescriptTypes or Types-test related issue / Pull RequestTypes or Types-test related issue / Pull Request