Database
db={category:[{id:1,name:"MEN",status:true},{id:2,name:"WOMEN",staus:true}],services:[{name:"service a",category_id:1,status:true},{name:"service b",category_id:1,status:true},{name:"service c",category_id:1,status:true},{name:"service d",category_id:1,status:false}]}
Query
db.category.aggregate([{"$lookup":{"from":"services","localField":"id","foreignField":"category_id","as":"services"}},{"$project":{"id":1,"name":1,"status":1,"services":{"$filter":{"input":"$services","as":"s","cond":{"$eq":["$$s.status",true]}}}}}])