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","let":{"id":"$id"},"pipeline":[{"$match":{"$expr":{"$and":[{"$eq":["$category_id","$$id"]},{"$eq":["$status",true]}]}}}],"as":"services"}}])