how to match in array of object in mongo 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}}})