$not + $nin incorrectly matches documents

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Affects Version/s: 2.2.0
    • Component/s: Querying
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I'm currently trying to make use of $not and $nin.

      db.item.find({'tags': {'$not':

      {'$nin': [1, 2, 3, 4]}

      }})

      In theory this should return items that don't have any tags other than the ones specified, in actuality it seems to turn it into $in.

            Assignee:
            Scott Hernandez (Inactive)
            Reporter:
            Noah McIlraith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: