Expression, Operand
Combine and calculate the two expressions <exp1>
and <exp2>
, as in:
<exp1> | <exp2> | Result |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
Syntax:
- Expression:
<exp1>
&&<exp2>
- Operand: expression (true, false)
Common Usage
Example: find 10 cards whose balances are over 500,000
find().nodes({@card && balance > 500000}) as n
limit 10
return n{*}
Analysis: this filter is a separated form from {@card.balance > 500000}
, see Schema Filter &
.
Example: find 10 cards whose balances are greater than 500,000 and whose levels are less than 3.
find().nodes({@card.balance > 500000 && level < 3}) as n
limit 10
return n{*}