Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
-
1.8.2
-
None
-
None
-
ALL
Description
db.foo.save(
{a: 1, b: [1, 2, 3]})
db.foo.find({}, {b: {$slice: [1, 2]}})
{ "_id" : ObjectId("4e146daea715701bb7716a85"), "a" : 1, "b" : [ 2, 3 ] }Why does this return the 'a' field too?
Attachments
Issue Links
- is duplicated by
-
SERVER-2259 Limiting data by $slice returns adjacent items in a dict.
-
- Closed
-
-
SERVER-36112 disparate behavior of $slice and $elemMatch projection operators
-
- Closed
-