Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-30-2022 09:36 AM
Extract is no longer supported. Please use list comprehension instead (line 5, column 29 (offset: 206)) "RETURN length(p) AS Length, extract(x IN nodes(p) | x.name) AS Path"
Solved! Go to Solution.
07-30-2022 09:42 AM - edited 07-30-2022 10:02 AM
Try this:
match(a:Character)
match(b:Character)
where id(a) > id(b)
match p=shortestPath((a)-[:INTERACTS*]-(b))
return length(p) as Length, [x in nodes(p) | x.name] as Path
order by Length desc
limit 4
07-30-2022 09:42 AM - edited 07-30-2022 10:02 AM
Try this:
match(a:Character)
match(b:Character)
where id(a) > id(b)
match p=shortestPath((a)-[:INTERACTS*]-(b))
return length(p) as Length, [x in nodes(p) | x.name] as Path
order by Length desc
limit 4
07-30-2022 11:49 AM
thank you very much,
can run
All the sessions of the conference are now available online