Share via


Array query - operators

Array query operators are used to query and filter array elements.

Description
$all The $all operator helps finding array documents matching all the elements.
$elemMatch The $elemMatch operator returns complete array, qualifying criteria with at least one matching array element.
$size The $size operator is used to query documents where an array field has a specified number of elements.