Parameters, Value
Array Size function calculates the size of the array, i.e. the number of elements in the array.
Syntax:
- Format: size(
<array>
) - Parameters: see table below
- Value: ATTR (number)
Name | Category | Specification | Description |
---|---|---|---|
array | ARRAY | / | The array to be calculated |
Common Usage
Example: Count the number of the neighbors of Card CA001
khop().src({_id == "CA001"}).depth(1) as n1
return size(collect(n1))