i am using this query
userModel.find({
categories: {
$elemMatch: {
activestatus: 'active',
category: inquiryObject.category,
answers: { $elemMatch: { question: {$in:questions}, answers: {$in:answers} }},
location:{$near:{
$geometry: {
type: "Point",
coordinates: [inquiryObject.location.coordinates[0], inquiryObject.location.coordinates[1]]
},
$maxDistance:'categories.servingradius',
}}
}
},
})
now categories is array and in categories there is every object have servingradius i want to find the user whitch have that category and question answers within the user’s serving raduis how can i do that