Is it possible to add or append values to a given key in the "onMatchProps" portion of apoc.merge.node?
Using regular Cypher, I would use ON CREATE and ON MATCH commands to add values from different rows together
ON CREATE r.data_length = row.data_length
ON MATCH r.data_length = r.data_length + row.data_length
My issue is using apoc.merge.node, I haven't been able to determine how to reference the key created onCreateProps in the onMatchProps statement.
CALL apoc.merge.node(['Label'], identProps:{key:value, …}, onCreateProps:{key:value,…}, onMatchProps:{key:value,…}})
CALL apoc.merge.node(['ip'], {key:row.ip}, {data_length:row.data_length}, {data_length:data_length + row.data_length}}) returns an error of variable "data_length" not defined.