5.1 · Lesson

Scoping Variables

You have already learned how you can specify a variable for a Full definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties. or Full definition for relationship (opens in a new tab)A 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.