Sail E0 Webinar
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 Solution

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

Latest Videos

Latest Test Papers