翻译或纠错本页面

Projection Operators

注解

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

注解

For details on specific operator, including syntax and examples, click on the specific operator to go to its 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)  →