Skip to content

Commit 86cdcfe

Browse files
author
Sam Kleinman
committed
DOCS-1160: correcting example
1 parent 3d5b829 commit 86cdcfe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/release-notes/2.4.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,10 @@ for ``2dsphere`` indexes as ``2d`` indexes.
11981198

11991199
.. code-block:: javascript
12001200

1201-
db.collection.find( { $geoIntersects: { $geometry: { "type": "Point", "coordinates": [ 40, 5 ] } } } )
1201+
db.collection.find( { loc: { $geoIntersects:
1202+
{ $geometry: { "type": "Point",
1203+
"coordinates": [ 40, 5 ]
1204+
} } } } )
12021205

12031206
This query will select all indexed objects that intersect with the
12041207
``Point`` with the coordinates ``[ 40, 5 ]``. MongoDB will return

0 commit comments

Comments
 (0)