aggregration for finding if array containd value in mongo query code example Example: mongodb find element in array db.yourCollection.find( { array: "element" } )