-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
Query
-
ALL
Consider the document:
{_id: 1, a : [1,2,3,4,5]}
db.collection.find({}, {a : {$slice : [-10, 1]}}) returns
{_id : 1, a : [1]}
whereas
db.collection.find({}, {a : {$slice : [10, 1]}}) returns
{_id : 1, a : []}