Discussion :: MongoDB MCQs
- Which of the following method returns true if the cursor has documents ?
Answer : Option B
Explanation :
hasNext() returns true if the cursor returned by the db.collection.find() query can iterate further to return more documents.
Be The First To Comment