nin
judges if a given value does not belong to a set.
- Expression:
<value>
nin<array>
- Left operand: string, number, time
- Right operand: array
Constant
Example: judge if 2 does not belong to [1,2,3]
return 2 nin [1,2,3]
Function
Example: judge if 2 does not belong to [1,2,3]
uncollect [1,2,3] as n
return 2 nin collect(n)
Alias
Example: find 10 nodes whose levels do not belong to [1,2,3]
find().nodes() as n
where n.level nin [1, 2, 3]
limit 10
return n{*}
Property
Example: find 10 nodes that are neither cards nor customers
find().nodes({@ nin ["card","customer"]}) as n
limit 10
return n{*}
Example: find 10 nodes whose levels do not belong to [1,2,3]
find().nodes({level nin [1, 2, 3]}) as n
limit 10
return n{*}