Sitelet https://github.com/ArcadeData/arcadedb/issues/3761
Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions