Database
[{_id:1,product:[{id:1,name:true},{id:2,name:true},{id:3,name:false}]}]
Query
db.collection.aggregate([{$match:{"product.name":true}},{$project:{product:{$filter:{input:"$product",as:"prod",cond:{$eq:["$$prod.name",true]}}}}}])