We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2009ca3 commit c35f55eCopy full SHA for c35f55e
source/reference/operator/query/near.txt
@@ -34,14 +34,16 @@ Definition
34
.. code-block:: javascript
35
36
{
37
- $near: {
38
- $geometry: {
39
- type: "Point" ,
40
- coordinates: [ <longitude> , <latitude> ]
41
- },
42
- $maxDistance: <distance in meters>,
43
- $minDistance: <distance in meters>
44
- }
+ <location field>: {
+ $near: {
+ $geometry: {
+ type: "Point" ,
+ coordinates: [ <longitude> , <latitude> ]
+ },
+ $maxDistance: <distance in meters>,
+ $minDistance: <distance in meters>
45
+ }
46
47
}
48
49
When specifying a :term:`GeoJSON` point, you can use the *optional*
0 commit comments