1.

To iterate the cursor and return more documents, type _________ in the mongo shell.(a) cursor(b) it(c) next(d) none of the mentionedI got this question in my homework.I'm obligated to ask this question of Generate Test Data topic in portion MongoDB CRUD Concepts and Operation of MongoDB

Answer»

The CORRECT choice is (B) it

Easy explanation: The db.collection.find() method returns a cursor. To ACCESS the DOCUMENTS, you NEED to iterate the cursor.



Discussion

No Comment Found

Related InterviewSolutions