Neo4J cypher query to get nodes connected by paths with the same generic attribute
问题 I'm trying to create a cypher query that returns me the nodes connected by a given range of hops (i.e. 1..5), where all the relationships between these hops share a same attribute value, without specifying this attribute. So I would like to do something like MATCH (a {type: 'cin1'})-[rels:Next*1.. {value: 1}]->(b {type: 'cancer'}) RETURN (a), (b) But without specifying that the value on the edges should be one, they just need to be equal among all the edges in the hopping process. 回答1: I