Skip to content

Cypher: unable to parse query when using WITH * #3761

@Orkie

Description

@Orkie
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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions