Choosing Fields with Projections

A projection, the second argument to find, chooses which fields come back; 1 includes a field and 0 leaves it out, _id comes along unless you leave it out, and the two can't be mixed except for _id.

By

Updated

Cheat sheet: Choosing Fields with Projections
Category
MongoDB
Level
Apprentice
Tags
Embedded Document, find (mongodb), mongodb, Projection (mongodb)