-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.6.4, 2.7.5
-
Component/s: Querying
-
None
-
ALL
I have created an db with the following structure
{ "_id" : ObjectId("54167c9a4420660b672d2a3f"), "a" : "1111", "pc" : [ [ "bb", "aa", { "c" : "cc", "d" : "dd" }, { "c" : "aaa", "d" : "ddd" }, ], [ "cc", "dd", { "a" : "cc", "b" : "dd" }, { "a" : "aaa", "b" : "ddd" }, } ] ] }
and i have used the following query in mongodb version 2.4.6, it has given the correct output
db.cg.find({'pc':{'$elemMatch':{'$all':['aa','bb']}}})
but the same query i have used in mongodb version 2.6.1 it is neither throwing any error nor giving any result
- related to
-
SERVER-13963 Different Results from nested array query
- Closed