Skip to content

Commit 74d8525

Browse files
author
Sam Kleinman
committed
DOCS-1151: correction to $within and operation
1 parent f9f94e7 commit 74d8525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/core/geospatial-indexes.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ with a radius of ``100`` miles:
276276

277277
.. code-block:: javascript
278278

279-
db.places.find( { loc: { $centerSphere: [ [ -74, 40.74 ] ,
280-
100 / 3963.192 ] } } )
279+
db.places.find( { loc: { $within: { $centerSphere: [ [ -74, 40.74 ] ,
280+
100 / 3963.192 ] } } } )
281281

282282
You may also use the ``distanceMultiplier`` option to the
283283
:dbcommand:`geoNear` to convert radians in the :program:`mongod`

0 commit comments

Comments
 (0)