You are viewing an offline version of MongoDB documentation. Some page features might be unavailable. To view the latest version of the page or use interactive features, visit the live page.
Array operators return data based on array conditions.
Name | Description |
|---|---|
Matches arrays that contain all elements specified in the query. | |
Selects documents if at least one element in the array field matches all
the specified | |
Selects documents if the array field contains the specified number of elements. |
For examples on querying array fields, see: