MongoDB how to find documents

75 Views
Published
#MongoDB #course #tutorial

00:00:00 MongoDB Shell
00:03:10 MongoDB Compass

db.students.find({name: "Spongebob"})
db.students.find({gpa: 4.0})
db.students.find({fullTime: false})
db.students.find({}, {name: true})
db.students.find({}, {_id: false, name: true})
db.students.find({}, {_id: false, name: true, gpa: true})
db.students.find({name:"Spongebob"}, {_id: false, name: true, gpa: true})
Category
Bro Code
Tags
MongoDB course, MongoDB tutorial, MongoDB
Be the first to comment