Function length()
returns the length of the path, namely, the number of edges in the path.
Arguments:
- Path <path>
Returns:
- Length <number>
Common Usage
Example: Find the shortest paths within 5 steps from card CA001 to CA002, and return the length of found paths
n({_id == "CA001"}).e()[*:5].n({_id == "CA002"}) as paths
limit 1
return length(paths)