Neo4j - reduce函数: 根据关系指定路径深度查询时设置关系查询条件
MATCH p=(n)-[r*…2]-(e) with reduce(temp=0,data in r | data.label) as label, p as p WHERE n.disabled=‘0’ and label = ‘retation’ RETURN p
其中label即为关系r上的属性
MATCH p=(n)-[r*…2]-(e) with reduce(temp=0,data in r | data.label) as label, p as p WHERE n.disabled=‘0’ and label = ‘retation’ RETURN p
其中label即为关系r上的属性