Projection Operators
MongoDB 5.0 is end of life as of October 2024. This version of the documentation is no longer
supported. To upgrade your 5.0 deployment, see the MongoDB 6.0 upgrade procedures.
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. | |
Projects the first element in an array that matches the specified | |
Projects the available per-document metadata. | |
Limits the number of elements projected from an array. Supports skip and limit slices. |