Parameters, Value
Path edge function puts the UUIDs of the edges in a path one after the other and combines them into an array before return it.
Syntax:
- Format: pedges(
<path>
) - Parameters: see table below
- Value: ARRAY ( 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 10 arrays after combining the edges's UUIDs in every path
n({_id == "CA001"}).e()[*:5].n({_id == "CA002"}) as paths
limit 10
return pedges(paths)