I am trying to use the SUM function and store the result of it as a new property of the relationship. But it is not working. The query I used is :
SUM
Try it:
MATCH (a:Employee)-[r:CorporateMessage]->(b) WHERE a.Eid = 6001 AND b.Eid IN [6002,6003,6004,6005,5001] WITH r, SUM(r.count) as count SET r.Internalsum = count
Always put aggregation functions in WITH or RETURN.
WITH
RETURN