find path 返回结果可以修改吗

如题,FIND PATH目前返回结果是path,有没有办法把path再进一步拆分,只取EDGE或者只取vertex?

FIND { SHORTEST | ALL | NOLOOP } PATH [WITH PROP] FROM <vertex_id_list> TO <vertex_id_list>
OVER <edge_type_list> [REVERSELY | BIDIRECT] 
[<WHERE clause>] [UPTO <N> STEPS] 
YIELD path as <alias>
[| ORDER BY $-.path] [| LIMIT <M>];

<vertex_id_list> ::=
[vertex_id [, vertex_id] …]

可以通过 pipe 取 path 中的 nodes 和 edges,类似:

FIND PATH ... | YIELD nodes($-.path) AS ns, relationships($-.path) AS es
3 个赞

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。