Skip to content
Justice Tech School

Projection

Choose fields to return.

Example
db.users.find({}, { name: 1, _id: 0 })

Exercise

Include a field.

{ name:  }

Quiz Test

What does 0 do in projection?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.