Projection
Choose fields to return.
Example
db.users.find({}, { name: 1, _id: 0 })Exercise
Include a field.
{ name: }
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.
Choose fields to return.
db.users.find({}, { name: 1, _id: 0 })Include a field.
{ name: }
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.