You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the current behavior is a bug, please provide the steps to reproduce.
To reproduce bug, just send query with $all (example in code)
What is the expected behavior?
In mongoose 6.1.8 everything work as expected
Here is output: Mongoose: tests.find({ status: { '$all': [ { '$elemMatch': { _id: new ObjectId("61fabb8338f6907faa87655b") } } ] }}, { projection: {} })
Place to fix
Found this commit that broke $all behaviour
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Mongoose 6.1.10, MongoDB 4.4, Node v14.18.2
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I have a simple request with $all
And mongoose send request like:
Mongoose: tests.find({ status: { '$all': [ undefined ] } }, { projection: {} })
If the current behavior is a bug, please provide the steps to reproduce.
To reproduce bug, just send query with $all (example in code)
What is the expected behavior?
In mongoose 6.1.8 everything work as expected
Here is output:
Mongoose: tests.find({ status: { '$all': [ { '$elemMatch': { _id: new ObjectId("61fabb8338f6907faa87655b") } } ] }}, { projection: {} })
Place to fix
Found this commit that broke $all behaviour
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Mongoose 6.1.10, MongoDB 4.4, Node v14.18.2
The text was updated successfully, but these errors were encountered: