Question 10
What does the following $slice query return using the following command? db.posts.find( {},
{ comments: { $slice: [ -10, 5 ] } } )
Select an option, then click Submit answer.
-
○
Returns 5 comments, beginning with the last 10 items
-
○
Returns 10 comments, beginning with the last
-
○
Returns 10 comments, beginning with the first
-
○
Returns 5 comments, beginning with the first 10 items