Star

语句实现需求-match

match return 里面可以实现返回边的如下属性吗?

此外,在一条语法里面怎么实现类似于sql的union all的写法呢?

语法上还不支持。不过这些属性都是默认会在Vertex,Edge,Path中返回的,你可以直接用。

nGQL支持union

(user@nebula) [nba]> Match (v:player{name:"Tim Duncan"}) Return v Union Match (v:player{name:"Tony Parker"}) Return v
+-------------------------------------------------------------------------------------------------------------+
| v                                                                                                           |
+-------------------------------------------------------------------------------------------------------------+
| ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) |
+-------------------------------------------------------------------------------------------------------------+
| ("Tony Parker" :player{age: 36, name: "Tony Parker"})                                                       |
+-------------------------------------------------------------------------------------------------------------+

浙ICP备20010487号