Report

Cypher path variable not in scope after WITH clause — APOC expandConfig

c2b49083-d585-47f1-85ac-e6d1d177a82c

APOC apoc.path.expandConfig() yields a path variable, but after a WITH clause that projects path properties into aliases (last(nodes(path)) AS node, length(path) AS hop, etc.), the path variable itself is no longer in scope for the RETURN clause. Referencing path in RETURN (e.g., last(relationships(path)).someProperty) causes 'Variable path not defined' error, breaking all graph traversal queries.