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

unclear error message when $in is used with scalar instead of array

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Querying

    Description

      It could be a little more specific that you need to pass an array:

      > db.foo.find({x:{$in:1}})
      error:

      { "$err" : "invalid query", "code" : 12580 }

      Attachments

        Activity

          People

            Unassigned Unassigned
            kristina Kristina Chodorow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: