Pluck out one or more fields from either an object or a sequence of objects.
object
.
id
) is not included in the projected fields, the cursor cannot be iterated over for updates.id
, name
and email
fields from a user document.
id
, title
and author
fields from all blog posts.
get
- Get a document by primary keygetAll
- Get multiple documentsfilter
- Filter documentsfield
- Reference a specific fieldupdate
- Update documentsinsert
- Insert new documentswithout
- Remove fields from documents