[DOCS-903] Wrong shape used in example for $within operator Created: 18/Dec/12  Updated: 18/Dec/12  Resolved: 18/Dec/12

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Claus Hoefele Assignee: Ed Costello
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 11 years, 9 weeks, 1 day ago

 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".



 Comments   
Comment by auto [ 18/Dec/12 ]

Author:

{u'date': u'2012-12-18T17:25:29Z', u'name': u'Ed Costello', u'email': u'igotyouremailfromgithub@epcostello.com'}

Message: DOCS-903 c/$box/$polygon
Branch: master
https://github.com/mongodb/docs/commit/dfab9040ca065d8b93d8c936dc27ec970b2d40bb

Generated at Thu Feb 08 07:39:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.