Any fixes on this issue? We also encountered this problem, in the projection it doesn’t execute the things we want…
Like on the example, we also need to filter only those sub element items that is not yet marked as deleted.
The structure is:
document
–items (this contains a multiple elements, it’s an array type of field)
Here’s the example
{
"_id" : "SEAWRcioKoz2R8p2C",
"name" : "Testing 1",
"items" : [
{
"display" : NumberInt(1),
"require" : NumberInt(1),
"occupation" : "Anchor Points",
"description" : "1 Testing",
"quantity" : "35",
"item" : "hrs",
"rate" : "5.54",
"labour" : "0.00",
"_id" : "fsf342fdsfj3hj342",
"deleted" : true
},
{
"display" : NumberInt(1),
"require" : NumberInt(1),
"occupation" : "Asbestos",
"description" : "2 Testing eere",
"quantity" : "3",
"item" : "visit",
"rate" : "1.04",
"labour" : "0.00",
"_id" : "fea8394028df47cef0afcc51",
"deleted" : false
}
],
"deleted" : false
}
…as you see the items fields has deleted field, now what we want is to filter only those items with deleted value is false.
I tried in MongoChef and it works but on meteor it doesn’t. Suppose to be the query looks like this:
{'items.description' : '1 Testing'}, {'items.$': 1}
Any help are appreciated. 
Thanks!