xor
calculates the exclusive OR of two expressions as in:
expression1 | expression2 | Result |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
- Expression:
<exp1>
xor<exp2>
- Operand: expression (true, false)
Common Usage
Example: find 10 nodes with one of their properties open_date and expire_date is 0, another is not 0
find().nodes({open_date xor expire_date}) as n
limit 10
return n{*}