Wyszukaj wewnątrz tablicy z obiektem 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.searchArrayDemo.find({EmployeeDetails:{$elemMatch:{EmployeePerformanceArea : "C", Year : 1996}}}).pretty();