Consider a collection X . which has number of documents. There is a field Y which is an array. I need to get all the documents which contains ["val1","val2"