Hello, when I set a filter has $geoNear, $near, and $nearSphere and use the filter in CountDocuments, I will get error (BadValue) $geoNear, $near, and $nearSphere are not allowed in this context. what’s the root reason that these operators not allowed.
Is it because the searching or counting using $geoNear, $near and $nearSphere are time consuming and will impact the performance?
thanks,
James