Skip to content

Commit c35f55e

Browse files
asya999kay-kim
authored andcommitted
add missing field name
Example less confusion when showing that location-field is required. Signed-off-by: kay <[email protected]>
1 parent 2009ca3 commit c35f55e

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

source/reference/operator/query/near.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ Definition
3434
.. code-block:: javascript
3535

3636
{
37-
$near: {
38-
$geometry: {
39-
type: "Point" ,
40-
coordinates: [ <longitude> , <latitude> ]
41-
},
42-
$maxDistance: <distance in meters>,
43-
$minDistance: <distance in meters>
44-
}
37+
<location field>: {
38+
$near: {
39+
$geometry: {
40+
type: "Point" ,
41+
coordinates: [ <longitude> , <latitude> ]
42+
},
43+
$maxDistance: <distance in meters>,
44+
$minDistance: <distance in meters>
45+
}
46+
}
4547
}
4648

4749
When specifying a :term:`GeoJSON` point, you can use the *optional*

0 commit comments

Comments
 (0)