find all elements on the bases of array in mongodb code example Example: mongodb find element in array db.yourCollection.find( { array: "element" } )