Answers for "get only some fields of document in mongodb"

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 "get only some fields of document in mongodb"

Browse Popular Code Answers by Language