I have the following query
MATCH (wallstreet { title:'Wall Street' })<-[r:ACTED_IN|DIRECTED]-(person)
RETURN person
I need to
apply a filter on
ACTED_IN
andDIRECTED
separately.a path could contain
ACTED_IN
twice. I may need to apply two conditions withOR
orAND
.apply INCOMING and OUTGOING and BOTH separately for ACTED_IN and DIRECTED
Can any body provide the cypher query that satisfies the above three requirements?
Pseudo cypher
MATCH (wallstreet { title:'Wall Street' })<-[r:ACTED_IN{Name:"Titanic"}|r1:DIRECTED{Name:"iceage1"}|r1:DIRECTED{Name:"Iceage2"}]-(person)
RETURN person
IF you observe the Psedo code , I have changed only relationship part .I added Three relationships in which TWO are of same type.I added filter properties for each relationships in relationship part.