I am trying to find the Shortest Path between given Multiple Nodes. Like I have an Array of locations Node and then there is a location for the user. I want to find the Nearest Location to that user between these given nodes.
I have tried this query
UNWIND
["93049","67069","90762","86156","01067","18069","52146","04356"," 42329","53113","76131","40549","50670","50678","85774","80339"] AS plz
MATCH p=Shortestpath(
(a:plzNodes {plz: plz})-[*..14]-(b:plzNodes {plz: "88400"})
) RETURN plz,collect(p);