Database

[{_id:1,ModelType:"Player",ModelList:[{ModelHashKey:"1",ModelName:"1",ModelAttribute:"Male"},{ModelHashKey:"2",ModelName:"2",ModelAttribute:"Male"},{ModelHashKey:"3",ModelName:"3",ModelAttribute:"Female"}]},{_id:2,ModelType:"NotPlayer",ModelList:[{ModelHashKey:"4",ModelName:"4",ModelAttribute:"Male"},{ModelHashKey:"5",ModelName:"5",ModelAttribute:"Male"},{ModelHashKey:"6",ModelName:"6",ModelAttribute:"Female"}]}]

Query

db.collection.aggregate([{$match:{"ModelType":"Player","ModelList.ModelAttribute":"Male"}},{$addFields:{"ModelList":{$filter:{input:"$ModelList",as:"item",cond:{$eq:["$$item.ModelAttribute","Male"]}}}}}])

Result