Suppose I have a insert a set of documents each with an array field. I would like to find all documents such that their array field is a subset of
array
In MongoDb, for array field:
"$in:[...]" means "intersection" or "any element in", "$all:[...]" means "subset" or "contain", "$elemMatch:{...}" means "any element match" "$not:{$elemMatch:{$nin:[...]}}" means "superset" or "in"