MATCH (t1: Thing1 {id: "A"})
OPTIONAL MATCH (t1)-[:basedOn]->(t2:Thing2) WITH *, t2 AS out2
RETURN t1 AS out1, out2
returns
Error parsing OpenCypher query: MATCH (t1: Thing1 {id: "A"})
OPTIONAL MATCH (t1)-[:basedOn]-(t2:Thing2) WITH *, t2 AS out2
RETURN t1 AS out1, out2
It seems to be something to do with the WITH * as the following works:
MATCH (t1: Thing1 {id: "A"})
OPTIONAL MATCH (t1)-[:basedOn]->(t2:Thing2) WITH t1, t2 AS out2
RETURN t1 AS out1, out2
Both work on Neo4j
returns
It seems to be something to do with the
WITH *as the following works:Both work on Neo4j