Skip to content

Commit dfab904

Browse files
committed
DOCS-903 c/$box/$polygon
1 parent 9be6627 commit dfab904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/reference/operator/within.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $within
4040

4141
.. code-block:: javascript
4242

43-
db.collection.find( { location: { $within: { $box: [[100,120], [100,100], [120,100], [240,200]] } } } );
43+
db.collection.find( { location: { $within: { $polygon: [[100,120], [100,100], [120,100], [240,200]] } } } );
4444

4545
The last point of a polygon is implicitly connected to the first
4646
point.

0 commit comments

Comments
 (0)