Database Manual / Reference / Query Language / Query Predicates

Array Query Predicate Operators

Array operators return data based on array conditions.

NameDescription

$all

Matches arrays that contain all elements specified in the query.

$elemMatch

Selects documents if at least one element in the array field matches all the specified $elemMatch conditions.

$size

Selects documents if the array field contains the specified number of elements.

For examples on querying array fields, see: