Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
-
None
-
None
-
None
Description
http://docs.mongodb.org/manual/reference/operators/#_S_within
In the above page, the description of the $within operator contains a mistake where it talks about polygon shapes. The example for polygons should be
"db.collection.find( { location: { $within:
{ $polygon: [[100,120], [100,100], [120,100], [240,200]] }} } );"
"$box" should be replaced by "$polygon".