1.

db.collection.aggregate() returns a _______ and can return result sets of any size.(a) replica(b) cursor(c) document(d) $subtractI had been asked this question by my school principal while I was bunking the class.The question is from Pipeline and Sharded Collections topic in section Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

Correct ANSWER is (B) CURSOR

For explanation I would SAY: The aggregate command can return results as a cursor or store the results in a collection, which are not subject to the size LIMIT.



Discussion

No Comment Found

Related InterviewSolutions