mongodb findbyid in array of objects 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}}})