can we give array as an input in mongo query to match code example Example: mongodb find element in array db.yourCollection.find( { array: "element" } )