Neo4j: Sum relationship properties where node properties equal Value A and Value B (intersection)
问题 Basically my question is: how do I sum relationship properties where there is a related nodes that have properties equal to Value A and Value B? For example: I have a simple DB has the following relationship: (site)-[:HAS_MEMBER]->(user)-[:POSTED]->(status)-[:TAGGED_WITH]->(tag) On [:TAGGED_WITH] I have a property called "TimeSpent". I can easily SUM up all the time spent for a particular day and user by using the following query: MATCH (user)-[:POSTED]->(updates)-[r:TAGGED_WITH]->(tags)