-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation pipeline, Autocomplete
-
Environment:OS:
node.js / npm versions:
Additional info:
-
2
-
Not Needed
-
None
It has been reported through our team email that the template for $geoNear is out of date and suggests unsupported options (see screenshot). As we are fixing the outdated options we may as well update the entire template and add newer parameters too.
https://www.mongodb.com/docs/manual/reference/operator/aggregation/geoNear/
Note that this outdated template comes from mongodb-constants package https://github.com/mongodb-js/devtools-shared/blob/3895d3c30e1342e9094c391ca60096d5280416f3/packages/mongodb-constants/src/stage-operators.ts#L374