nebula 版本号: 3.0.2
参考 find path 的语法
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>];
在 console 执行如下路径查询语句:
FIND NOLOOP PATH FROM 1 TO 22 OVER * UPTO 4 STEPS YIELD path AS p ORDER BY $-.path limit 5;
直接提示语法错误:
[ERROR (-1004)]: SyntaxError: syntax error near `ORDER'
让人很迷惑啊,不知道哪里不对了,直接去掉 ORDER BY ,只保留 LIMIT 则直接提示 LIMIT 有错。。