What does the following aggregate query perform?

Posted by: Pdfprep Category: C100DBA Tags: , ,

What does the following aggregate query perform?

MongoDB-C100DBA43_1

A . Fetches the posts with likes between 100 and 200 and sets their _id as null
B . Groups the posts by number of likes (101, 102, 103.) by adding 1 every time
C . Calculates the number of posts with likes between 100 and 200
D . Fetches the posts with likes between 100 and 200, sets the _id of the first document as null and then increments it 1 every time

Answer: C

Leave a Reply

Your email address will not be published.