find array of objects in mongodb code example
Example: find object in array mongodb
db.users.findOne({"_id": id},{awards: {$elemMatch: {award:'Turing Award', year:1977}}})
db.users.findOne({"_id": id},{awards: {$elemMatch: {award:'Turing Award', year:1977}}})