Filter documents based on distance

Hi @MaBeuLux88_xxx,

Thanks for the answer! :smiley:

I already checked both $near and geoWithin (I don’t need sorting), but for some reason, it does not work.

Note that I have to use aggregate since the $radius/$maxDistance need to be fetched from the proximity field on document level.

Can you please check this post and let me know what do you think?