Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
2.2.0-rc0, 2.6.3
-
None
-
ALL
Description
When using $all, it results in x not appearing in the results
for ( i = 0; i < 100; i++ ) {
|
t.insert({ group: 1, x: [ 1, 2, 3, 4, 5 ] });
|
}
|
> t.find( { group:1 }, { _id : 0, x: { $elemMatch: { $all:[1, 2, 3] } } } ).limit(1)
|
{ }
|
May be better to uassert instead.
Attachments
Issue Links
- is depended on by
-
SERVER-1264 $elemMatch on subArray
-
- Closed
-
- is related to
-
SERVER-2238 New projection operator $elemMatch
-
- Closed
-