Answers for "mongo get all fields of field"

Go
8

mongodb select fields

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

get only some fields of document in mongodb

db.student.find({}, {roll:1, _id:0})
 same as SELECT roll FROM student
Posted by: Guest on May-18-2021

Code answers related to "mongo get all fields of field"

Browse Popular Code Answers by Language