Discussion Forum : Crud Concepts And Operation
Question - Which of the following method returns one document ?
Options:
A .  findOne()
B .  findOne1()
C .  selectOne()
D .  All of the mentioned
Answer: Option A


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



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *