My target to match looks like the following:
(:A) -[:R]-> (:B {val: 1})-> [:R]-> (:B {val : 2} )-> [:R]-> (:B {val: 3})-> [:R]-> (:B {val : 4})-> [:R]->(:C)
and I can match it with
MATCH (:A)-[:R *]->(C)
but is there a way I can specify constraints for the intermediate nodes? E.g. I want to specify that the val
property for them should match up in a sequence (1, 2. 3, 4, ...)