Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Works as Designed
-
None
-
None
-
None
-
None
-
ALL
-
Description
Changing the order of the clauses in a query object can change the result returned.
In the sample below, I reversed the order of the two $or clauses.
It looks like this is in 2.4.6 through 2.4.9, I haven't tested other server versions yet.
http://docs.mongodb.org/master/reference/operator/query/and/#op._S_and documents an implicit AND. The behaviour should probably be changed to match the documentation.
Attachments
Issue Links
- related to
-
DOCS-3208 Clarify $and reference page to reflect that it can combine top-level expressions
-
- Closed
-