Database

[{_id:1,color:["red","green","yellow"]},{_id:2,color:["red","blue","orange"]},{_id:3,color:["blue","black","grey"]}]

Query

db.collection.find({color:{$elemMatch:{$in:["black","yellow"]}}})

Result