Google News
logo
MongoDB - Quiz(MCQ)
Which of the following method returns one document?
A)
findOne1()
B)
selectOne()
C)
findOne()
D)
All of the above

Correct Answer :   findOne()


Explanation : MongoDB provides a db.collection.findOne() method as a special case of find() that returns a single document.

Advertisement