Skip to content

Commit 085142b

Browse files
authored
DOCSP-38319 Fix Location Query Syntax (#7288) (#7379)
1 parent 640c9b4 commit 085142b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

source/core/indexes/index-types/geospatial/2d/query/proximity-flat-surface.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ To query for location data near a specified point, use the
2222

2323
db.<collection>.find( {
2424
<location field> : {
25-
$near : {
26-
[ <longitude>, <latitude> ],
27-
$maxDistance : <distance in meters>
28-
}
29-
}
30-
} )
25+
$near : [ <longitude>, <latitude> ],
26+
$maxDistance : <distance in meters>
27+
}
28+
} )
3129

3230
About this Task
3331
---------------

0 commit comments

Comments
 (0)