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

  • 语句 1
    • 场景:对同类项进行合并,将结果中某个字段值相同的其他结果进行合并;
    • 具体语句:
    MATCH (uu:player)-[e:follow]->(p:player)-[:serve]->(f:team)
      WHERE id(f) == "team204"
      WITH p
    MATCH ()-[e:follow]->(p:player)
    WITH id(p) AS p, e.degree AS degree, count(e) AS count
    RETURN p, collect(degree), collect(count)