I am writing a query to find out all the directors who have also acted in the movie.
I have written the following query to achieve that result:
optional match (director:Person)-[:DIRECTED]->(movie:Movie)<-[:ACTED_IN]-(director)
return director.name, movie.title
The query is not returning the null values for the director name. My understanding is that "optional match" act as an "outer join" and it should return null values as well.