Parameters, Value
Path nodes function puts the UUIDs of the nodes in a path one after the other and combines them into an array before return it.
Syntax:
- Format: pnodes(
<path>
) - Parameters: see table below
- Value: ATTR ( number )
Name | Category | Specification | Description |
---|---|---|---|
path | PATH | / | the path to be calculated |
Common Usage
Example: Find 10 shortest paths within 5 steps from Card CA001 to CA002, and return arrays after combining the nodes' UUIDs in every path
n({_id == "CA001"}).e()[*:5].n({_id == "CA002"}) as paths
limit 10
return pnodes(paths)