how to search for object with key inside an array in mongodb code example
Example: search inside array with object mongodb
db.users.find({awards: {$elemMatch: {award:'National Medal', year:1975}}})
db.users.find({awards: {$elemMatch: {award:'National Medal', year:1975}}})