mongodb query to fetch doument array element code example
Example: fetching data from inside an array in mongodb
db.users.find( { name: "John"}, { items: { $elemMatch: { item_id: "1234" } } })
db.users.find( { name: "John"}, { items: { $elemMatch: { item_id: "1234" } } })