Data Store Array Queries
You can query documents based on values or objects stored within an array. These queries match documents containing qualifying array elements. They don't extract individual elements from the array. For query object structure and the collection methods that accept query objects, see Data Store Query Object.
The following table shows query examples and matching documents for each matching criterion.
Note:
For $elemMatch, the same array element must satisfy the defined conditions. For more information about $elemMatch and other query operators, see Data Store Query Operators.
For supported comparison values, see Data Store Query Rules. For query input limits, see Data Store Query Limits.