1.

______ can be used to iterate the cursor of document results returned by db.collection.find().(a) it(b) next(c) cur(d) none of the mentionedThis question was addressed to me in a national level competition.The query is from Aggregation Pipeline topic in chapter Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

Correct CHOICE is (a) it

Easy explanation: The mongo shell iterates the returned cursor automatically to PRINT the RESULTS.



Discussion

No Comment Found

Related InterviewSolutions