Find Documents
find returns a cursor over matching documents. Pass a filter as the first argument and a projection as the second. findOne returns one document.
Example
db.students.find()
db.students.find({ city: "Lagos" })
db.students.findOne({ name: "Ada" })Exercise
Find with a filter.
db.students.find({ city: })
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.