1.

______________ specifies the number of documents to return in each batch of the response from the MongoDB instance.(a) cursor.batchSize(size)(b) cursor.Size(size)(c) cursor.batch(size)(d) all of the mentionedI have been asked this question by my school teacher while I was bunking the class.This is a very interesting question from Read Operations in chapter MongoDB CRUD Concepts and Operation of MongoDB

Answer» CORRECT OPTION is (a) cursor.batchSize(size)

To ELABORATE: Specifying 1 or a NEGATIVE number is analogous to using the LIMIT() method.


Discussion

No Comment Found

Related InterviewSolutions