diff --git a/packages/mongodb-constants/src/stage-operators.ts b/packages/mongodb-constants/src/stage-operators.ts index e0957acee..6679dae4a 100644 --- a/packages/mongodb-constants/src/stage-operators.ts +++ b/packages/mongodb-constants/src/stage-operators.ts @@ -385,12 +385,14 @@ const STAGE_OPERATORS = [ namespaces: [...ANY_NAMESPACE], description: 'Returns documents based on proximity to a geospatial point.', comment: `/** - * near: The point to search near. + * near: The point to search near, supports the let option and bound let option. * distanceField: The calculated distance. - * maxDistance: The maximum distance, in meters, documents can be before being excluded from results. - * query: Limits results that match the query + * maxDistance: Optional maximum distance, in meters, documents can be before being excluded from results. + * minDistance: Optional minimum distance from the center point. + * query: Limits results that match the query. * includeLocs: Optional. Labels and includes the point used to match the document. - * num: Optional. The maximum number of documents to return. + * distanceMultiplier: Optional factor to multiply returned distances by. + * key: Optional geospatial indexed field to use. * spherical: Defaults to false. Specifies whether to use spherical geometry. */ `, @@ -398,10 +400,12 @@ const STAGE_OPERATORS = [ near: { type: 'Point', coordinates: [ \${1:number}, \${2:number} ] }, distanceField: '\${3:string}', maxDistance: \${4:number}, - query: {\${5}}, - includeLocs: '\${6}', - num: \${7:number}, - spherical: \${8:boolean} + minDistance: \${5:number}, + query: {\${6}}, + includeLocs: '\${7:string}', + distanceMultiplier: \${8:number}, + key: '\${9:string}', + spherical: \${10:boolean} }`, }, {