Outputting document with wrong _id when executing simplest query with strict = false #10934
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
Milestone
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When invoking simplest query findOne({ _id: }) returns correct document but it has wrong id from inner property
when setting strict = false.
If the current behavior is a bug, please provide the steps to reproduce.
Sample document
What is the expected behavior?
_id of returned document is '5a4cbff7c454930b8b90ff0f'
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node: v14.17.4,
"mongodb": "4.1.3",
"mongoose": "6.0.12"
The text was updated successfully, but these errors were encountered: