Navigation
This version of the documentation is archived and no longer supported.

Projection Operators

Projection operators specify the fields returned by an operation.

Note

find() operations on views do not support the following projection operators:

Note

For details on a specific operator, including syntax and examples, click on the link to the operator’s reference page.

Name Description
$ Projects the first element in an array that matches the query condition.
$elemMatch Projects the first element in an array that matches the specified $elemMatch condition.
$meta Projects the document’s score assigned during $text operation.
$slice Limits the number of elements projected from an array. Supports skip and limit slices.
←   $comment $ (projection)  →