mongodb find document by array match code example Example: mongodb find element in array db.yourCollection.find( { array: "element" } )