Tsallaka zuwa abun ciki
Justice Tech School

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

What does find return?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.