- 语句 1
- 场景:跳过有特殊标记的子图
- 具体语句:
Get Subgraph with prop N steps From 'xxx' OUT edgeType WHERE $$.person.is_skip is EMPTY OR $$.person.is_skip == false YIELD vertices AS nodes, edges AS relationships
- 适合版本:v3.x
- 语句出处:https://discuss.nebula-graph.com.cn/t/topic/13406
- 语句 2
- 场景:修改 lookup / find path 等返回结果,参考方式——采用管道
- 具体语句:
FIND PATH ... | YIELD nodes($-.path) AS ns, relationships($-.path) AS es
- 适合版本:v2.x 和 v3.x
- 语句出处:https://discuss.nebula-graph.com.cn/t/topic/13395
1 个赞