In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)

Posted by: Pdfprep Category: C100DBA Tags: , ,

In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)
A . Skip and limit nullify each other. Hence returning the first five documents.
B . Skips the first five documents and returns the next five
C . Limits the first five documents and then return them in reverse order
D . Skips the first five documents and returns the sixth document five times

Answer: B

Leave a Reply

Your email address will not be published.