MATCH (n) RETURN n
The case for CASE
This is how you might model Premier League managers tenures at different clubs in Neo4j:
The date modeling is based on an approach described in more detail in Return partly shared path ranges.
Our example graph consists of movies with title and year and actors with a name. Actors have ACTS_IN relationships to movies, which represents the role they played. This relationship also has a role attribute.
We queried and updated the data so far, now let’s find interesting constellations, a.k.a. paths.