1db.users.find({awards: {$elemMatch: {award:'National Medal', year:1975}}})
2
1db.users.findOne({"_id": id},{awards: {$elemMatch: {award:'Turing Award', year:1977}}})
2
1// Finds all documents that have a property named "tags"
2// which has at least one array element matching "red"
3db.inventory.find( { tags: "red" } )
1> db.searchArrayDemo.find({EmployeeDetails:{$elemMatch:{EmployeePerformanceArea : "C", Year : 1996}}}).pretty();