1.

When you query a collection, MongoDB returns a ________ object that contains the results of the query.(a) row(b) cursor(c) colums(d) none of the mentionedI had been asked this question during an interview.This interesting question is from Getting Started with MongoDB topic in chapter MongoDB CRUD Concepts and Operation of MongoDB

Answer»

The correct option is (b) cursor

To explain: The MONGO shell then iterates over the cursor to DISPLAY the RESULTS.



Discussion

No Comment Found

Related InterviewSolutions