Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3741

Better error message when forgetting type to $within

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.1.0
    • None
    • Geo
    • None

    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"

      Attachments

        Activity

          People

            greg_10gen Greg Studer
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: