how to get one field in mongodb code example Example: find only one field mongodb db.students.find({}, {roll:1, _id:0})