Array Operators
📌 $all
Matches array fields against an array of elements. All the elements that you are looking for must be in this array field.
📌 $size
We use $size to match documents based on the length of an array.
📌 $elemMatch
This one is used to find one element in an array that match all the criteria specified.
Last updated
Was this helpful?