5.1 · Lesson

Scoping Variables

You have already learned how you can specify a variable for a nodeA vertex in a graph. In a property graph it can carry labels and properties. or relationshipA named, directed connection between two nodes. Every relationship has a type, a start node and an end node. in a query:

In this query the variable p is used to test each Person node against the value Tom Hanks. The variable m is used to return the movie titles.