FOR statement unnests a list into individual records by iterating over its elements, allowing subsequent statements to process these elements one by one.
Querying
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
FOR statement unnests a list into individual records by iterating over its elements, allowing subsequent statements to process these elements one by one.
match paths = any shortest (a:city {_id:'Bayreuth'})-[edges:train|flight]->{1,}(b:city {_id:'Santiago'})
for edge in edges
return distinct table(edge._from, edge._to, labels(edge), pnodeIds(paths), length(paths));