cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

How do I get the sum of a property value of a cluster of nodes?

Nodes are all of the same type, two values, names and scores
Want to know the scores of a set of nodes that are connected by the relationship, how should I write

2 REPLIES 2

What have you tried so far? What does it produce?

Tried match (a)-[ * ]->(b) return sum(a.score) ,
and match (a)-[ r:call* ]->(b) with b return sum(b.score),
but them were especially slow
Then the browser is disconnected.
Now it is running match (a)-[ *]->(b) return a.name,sum(b.times)+a.times