Reference/Operators/Array Query/$size$sizeThe `$size` operator matches any array with the specified number of elements.Syntax{ field: { $size: <number> } }ParametersfieldstringrequiredThe field to query.<number>numberrequiredThe number of elements the array must contain.Related/operator/evaluation-query/regex
Reference/Operators/Array Query/$size$sizeThe `$size` operator matches any array with the specified number of elements.Syntax{ field: { $size: <number> } }ParametersfieldstringrequiredThe field to query.<number>numberrequiredThe number of elements the array must contain.Related/operator/evaluation-query/regex