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