himate
0
Q:

mongodb find element in array

db.yourCollection.find( { array: "element" } )
1
// Finds all documents that have a property named "tags"
// which has at least one array element matching "red"
db.inventory.find( { tags: "red" } )
0

New to Communities?

Join the community