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