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

Add XOR operator to $bit

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.2
    • Affects Version/s: 2.0.1
    • Component/s: Write Ops
    • Labels:
      None

      The XOR operator is lacking from the $bit operation. Useful for situations where you want to flip a flag :

      {flag: 1}

      db.col.update(

      {..}

      , {$bit:{flag:

      {xor:1}

      }})

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            remonvv Remon van Vliet
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: