Google News
logo
MongoDB - Quiz(MCQ)
Syntax for specifying an initial batch size for the cursor is ___________
A)
cur: { batchSize: }
B)
cursor: { batchSize: }
C)
cursor: { batchSize: }
D)
None of the above

Correct Answer :   cursor: { batchSize: }


Explanation : A batchSize of 0 means an empty first batch and is useful for quickly returning a cursor or failure message without doing significant server-side work.

Advertisement