Answers for "mongodb show fields"

Go
8

mongodb select fields

db.inventory.find( { status: "A" }, { item: 1, status: 1 } )
Posted by: Guest on September-24-2020
1

mongodb show only one field

db.students.find({}, {roll:1, _id:0})
Posted by: Guest on March-19-2021

Browse Popular Code Answers by Language