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}}})
- depends on
-
SERVER-6399 Refactor update() code
-
- Closed
-
- is related to
-
SERVER-8716 Various update() operators for Binary Data
-
- Backlog
-
-
SERVER-3281 Support $bit operator for binary types
-
- Backlog
-
- related to
-
SERVER-6399 Refactor update() code
-
- Closed
-