bitXor
Performs a bitwise XOR (exclusive OR) operation on a field.
This operator should always be used with a field of type Int or Long.
Example
class Switch(
val _id: Int,
val expdata: Int,
)
switches.filter {
Switch::_id eq 1
}.updateOne {
Switch::expdata bitXor 10
}Content copied to clipboard