In my graph, I have more than one relationship between 2 nodes. For ex. A-[HAS_P]->B
, A-[HAS_Q]->B
and A-[HAS_R]->B
. How do I exclude HAS_R
but still display the pattern A-[]-B
with the other two relationships HAS_P
and HAS_Q
? I tried this query but it shows all relationships and doesn't exclude HAS_R
relationship.
MATCH x = (A)-[r*..4]-(B)
WHERE NONE(r in relationships(x) WHERE type(r)="HAS_R")
RETURN x