Now our team use neo4j as a tool to implement MDM solution, we create all system as a node and all data exchanges as relationship and labeled "OUT" in neo4j.
We want to query what kinds of data transfers more than 2 system, so we use the cypher like following
MATCH (E:System)-[r:OUT]->(A:System)-[p:OUT]->(C:System) where r.description=p.description return *
and we got the result
But we can only get data transfer exactly 2 system, how about 3,4 or more?
so we want to try use variable-length pattern to get the result. But how can we restrict all OUT relation with the same property in a set of result like
MATCH test = (E:System)-[r:OUT*2]->(C:System) where ALL r.description is same