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

negated $in operator

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.9.3
    • Affects Version/s: 0.9.3
    • Component/s: Usability
    • None

      It would be very nice to be able to use a negated version of the existing $in query operator. If I have an array of values I know I don't want to match against, I'd ideally be able to use a query along the lines of

      db.mycoll.find({_id:{'not $in':[some, array]}})

            Assignee:
            aaron Aaron Staple
            Reporter:
            liamstask Liam Staskawicz
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: