My Schema is like A->B->C->D there are N no of relations in between A to B & B to C and so on but there is one common relation "COMMON" is in between A,B,C,D. Using my "COMMON" relation I want to get all other relation between given two nodes. for eg. get me all relation between A to C
Match path = (a)-[:COMMON*]-(c)
RETURN rels(path);
So here what I'm want is to filter the data with COMMON relation first then get all other relations in between A and C. Is there any way to write this query with OR or AND condition?