Database Manual / Reference / Query Language

Find Command Projection Operators

The following pages describe specialized operators that are only available in find command projections. In addition to these specialized operators, find command projections can also contain non-specialized expressions.

NameDescription

$

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 available per-document metadata.

$slice

Limits the number of elements projected from an array. Supports skip and limit slices.

Note

View Support

find() operations on views do not support any of the preceding projection operators.