Cari array di dalam dengan objek mongodb
db.users.find({awards: {$elemMatch: {award:'National Medal', year:1975}}})
Gifted Helper
db.users.find({awards: {$elemMatch: {award:'National Medal', year:1975}}})
db.users.findOne({"_id": id},{awards: {$elemMatch: {award:'Turing Award', year:1977}}})
db.yourCollection.find( { array: "element" } )
> db.searchArrayDemo.find({EmployeeDetails:{$elemMatch:{EmployeePerformanceArea : "C", Year : 1996}}}).pretty();
db.users.findOne({"_id": id},{awards: {$elemMatch: {award:'Turing Award', year:1977}}})