{ $project: { "field1": 0, "field2": 1, ... } }
Projection in mongoDB :
-> You can select the field you want in query to return
-> if you want field use {"field":1}
-> _id field is compasary if you dont want it use {"_id":0}
db.users.find({},{name:1,email:1, id:0}).pretty();