In MongoDB, the $in
aggregation pipeline operator returns a boolean indicating whether a specified value is in the array.
The $in
aggregation pipeline operator is not to be confused with the $in
query operator, which selects the documents where the value of a field equals any value in the specified array.