mongodb array field contains
db.inventory.find( { tags: { $all: ["red", "blank"] } } )
Source: docs.mongodb.com
mongo get array that only contains value
db.collection('col1').find("values":{"$not":{"$elemMatch":{"name":{$nin:['val1', 'val2']}}}}})
Source: stackoverflow.com
mongo get array that only contains value
db.collection.find({ '$expr': { '$setEquals': ['$toys', ['doll', 'car']] } })
Source: stackoverflow.com