The following code is worked well
SELECT * FROM cypher('age_graph', $$
MATCH (a)-[:LocatedAt*]->(c:City)
MATCH (a:Airport)-[e:Flight*]->(b:Airport)
MATCH (b)-[:LocatedAt*]->(c1:City)
RETURN c, a, e, b, c1
$$) AS (c agtype, airport1 agtype,e agtype , airport2 agtype, c1 agtype);
But when i want to try to return a property of edges in a path. it shows me an error like below:
SELECT * FROM cypher('age_graph', $$
MATCH (a)-[:LocatedAt*]->(c:City)
MATCH (a:Airport)-[e:Flight*]->(b:Airport)
MATCH (b)-[:LocatedAt*]->(c1:City)
RETURN c, a, e, b, c1, e.arrival_time
$$) AS (c agtype, airport1 agtype,e agtype , airport2 agtype, c1 agtype, arrival agtype);
ERROR: array index must resolve to an integer value