Explanation:In the mongo shell, if the cursor returned from the db.collection.aggregate() is not assigned to a variable using the var keyword, then the mongo shell automatically iterates the cursor up to 20 times. 4. Cursors returned from aggregation only supports cursor methods like :
A. cursor.hasNext()
B. cursor.Next()
C. cursor.has()
D. All of the mentioned
Answer:A
Explanation:In the mongo shell, if the cursor returned from the db.collection.aggregate() is not assigned to a variable using the var keyword, then the mongo shell automatically iterates the cursor up to 20 times. 4. Cursors returned from aggregation only supports cursor methods like :
A. cursor.hasNext() B. cursor.Next() C. cursor.has() D. All of the mentioned
Explanation: cursor.hasNext() returns true if the cursor returned by the db.collection.find() query can iterate further to return more documents. 5. Point out the wrong statement :