Expression, Operand
nin
judges if a given value does not belong to a set.
Syntax:
- Expression:
<value>
nin<array>
- Operand: see list below
Name | Type | Specification | Description |
---|---|---|---|
value | ATTR(string, number, time) | / | The value to be judged |
array | ARRAY | / | Targeted set |
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{*}