mongodb pipeline array contains code example
Example 1: $in mongodb
{ field: { $in: [, , ... ] } }
Example 2: mongodb array field contains
db.inventory.find( { tags: ["red", "blank"] } )
Example 3: mongodb array field contains
db.inventory.find( { tags: { $all: ["red", "blank"] } } )