Array Query Operators
This version of the documentation is archived and no longer supported. To
upgrade your 5.0 deployment, see the MongoDB 6.0 upgrade procedures.
Array operators return data based on array conditions.
Note
For details on a specific operator, including syntax and examples, click on the link to the operator's reference page.
Name | Description |
---|---|
Matches arrays that contain all elements specified in the query. | |
Selects documents if element in the array field matches all the specified | |
Selects documents if the array field is a specified size. |
For examples on querying array fields, see: