DocumentDB LogoDocumentDB
HomeGitHubDiscordDocsPackagesBlogs
Back to DocumentationMQL Documentation
Commands
Aggregation
Query And Write
Operators
Accumulators
Aggregation
Arithmetic Expression
Array Expression
Array Query
$all
$elemMatch
$size
Array Update
Bitwise
Bitwise Query
Bitwise Update
Comparison Query
Conditional Expression
Data Size
Date Expression
Element Query
Evaluation Query
Field Update
Geospatial
Literal Expression
Logical Query
Miscellaneous
Miscellaneous Query
Object Expression
Projection
Set Expression
Timestamp Expression
Variable Expression
Window Operators
Reference/Operators/Array Query

MongoDB Query Language (MQL) Array Query Operators

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

$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.

Copyright © DocumentDB a Series of LF Projects, LLC. For web site terms of use, trademark policy and other project policies please see https://lfprojects.org.