- 语句 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)
- 适合版本:v3.x
- 语句出处:https://discuss.nebula-graph.com.cn/t/topic/14167