Projection Operators投影运算符

Note注意

find() operations on views do not support the following projection operators:对视图的操作不支持以下投影运算符:

Note注意

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.投影数组中与查询条件匹配的第一个元素。
$elemMatchProjects the first element in an array that matches the specified $elemMatch condition.投影数组中与指定的$elemMatch条件匹配的第一个元素。
$metaProjects the available per-document metadata.投影可用的每个文档元数据。
$sliceLimits the number of elements projected from an array. 限制从数组投影的元素数。Supports skip and limit slices.支持跳过和限制分片。
←  $bitsAnySet$ (projection) →