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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 }

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

              Created:
              Updated:
              Resolved: