SHOW QUERY,这里有社区用户常用的 nGQL 查询语句

  • 语句 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
    
  • 语句 2
    • 场景:修改 lookup / find path 等返回结果,参考方式——采用管道
    • 具体语句:
    FIND PATH ... | YIELD nodes($-.path) AS ns, relationships($-.path) AS es
    
1 个赞