反向查询

A节点有到B节点的边,边类型为visit,我可以通过GO FROM $-.id over visit这种方式把A到B的数据查出来。
我现在有个需求,我现在想通过B去查询A到B的数据,而visit的方向是A到B,麻烦问一下有类似这种反方向查询的语句吗,谢谢

https://docs.nebula-graph.com.cn/manual-CN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/go-syntax/#_3

1 个赞

可以的,直接GO FROM $-.id over visit reversely就行,文档链接见楼上