What does the following $slice query return using the following command? db.posts.find( {}, { comments: { $slice: [ -10, 5 ] } } )

Posted by: Pdfprep Category: C100DBA Tags: , ,

What does the following $slice query return using the following command? db.posts.find( {}, { comments: { $slice: [ -10, 5 ] } } )
A . Returns 5 comments, beginning with the last 10 items
B . Returns 10 comments, beginning with the last
C . Returns 10 comments, beginning with the first
D . Returns 5 comments, beginning with the first 10 items

Answer: A

Leave a Reply

Your email address will not be published.