Skip to content

Commit 0f52e22

Browse files
authored
(DOCS-16412) minDistance and maxDistance can be expressions (#5203)
* (DOCS-16412) minDistance and maxDistance can be expressions * Includes changes from tech review
1 parent c46e1d6 commit 0f52e22

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

source/reference/operator/aggregation/geoNear.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ Definition
9999

100100
- Optional. The maximum distance from the center point that the documents *can*
101101
be. MongoDB limits the results to those documents that fall within
102-
the specified distance from the center point.
102+
the specified distance from the center point. Starting in
103+
version 7.2, you can specify a valid constant
104+
:ref:`expression <aggregation-expressions>` that resolves to
105+
a number.
103106

104107
Specify the distance in meters if the specified point is
105108
:term:`GeoJSON` and in radians if the specified point is
@@ -112,7 +115,10 @@ Definition
112115

113116
- Optional. The minimum distance from the center point that the documents *can*
114117
be. MongoDB limits the results to those documents that fall outside
115-
the specified distance from the center point.
118+
the specified distance from the center point. Starting in
119+
version 7.2, you can specify a valid constant
120+
:ref:`expression <aggregation-expressions>` that resolves to
121+
a number.
116122

117123
Specify the distance in meters for GeoJSON data and in radians for
118124
legacy coordinate pairs.

0 commit comments

Comments
 (0)