Skip to main content
FOR statement unnests a list into individual records by iterating over its elements, allowing subsequent statements to process these elements one by one.

Using FOR statement to iterate over each edge in a Quantified Path Pattern

Suppose we are interested in the all the hops required to go from Bayreuth to Santiago: We can use the FOR loop as following
We are using the FOR statement to unnest (decompose) the edges.