Better error message when forgetting type to $within

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.1.0
    • Affects Version/s: None
    • Component/s: Geo
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

            Assignee:
            Greg Studer (Inactive)
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: