[SERVER-3741] Better error message when forgetting type to $within Created: 01/Sep/11  Updated: 11/Jul/16  Resolved: 22/Sep/11

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

> db.foo.find({'locs.loc': {$within: [[50,50],5]}}, {_id:1}).limit(10)
error:

{ "$err" : "unknown $within type: 0", "code" : 13058 }

Could test for an type != object and say "need to specify shape for $within queries"



 Comments   
Comment by auto [ 22/Sep/11 ]

Author:

{u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}

Message: better $within error msg SERVER-3741
Branch: master
https://github.com/mongodb/mongo/commit/d8f4473c253be22f82a5ff75a7e353079539b85a

Generated at Thu Feb 08 03:03:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.