Add XOR operator to $bit

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Minor - P4
    • 2.5.2
    • Affects Version/s: 2.0.1
    • Component/s: Write Ops
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
              Reporter:
              Remon van Vliet
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: