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"}},{"$unwind":"$services"},{"$match":{"services.status":true}},{"$group":{"_id":"$_id","id":{"$first":"$id"},"status":{"$first":"$status"},"name":{"$first":"$name"},"services":{"$push":"$services"}}}])