Home / CSE MCQs / MongoDB MCQs :: Discussion

Discussion :: MongoDB MCQs

  1. Which of the following method returns one document ?
  2. A.
    findOne()
    B.
    findOne1()
    C.
    selectOne()
    D.
    All of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

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


Be The First To Comment