neo4j / docs-cypher

Neo4j Cypher Documentation
13 stars 54 forks source link

Neo.ClientError.Statement.SyntaxError #721

Closed Shichuan-Hao closed 1 year ago

Shichuan-Hao commented 1 year ago

When I execute this statement: MATCH (tom:Person {name:'Tom Hanks'})--{2}(colleagues:Person) RETURN DISTINCT colleagues.name AS name, colleagues.born AS bornIn ORDER BY bornIn LIMIT 5

the result: Neo.ClientError.Statement.SyntaxError:Quantified path patterns are not yet supported. (line 1, column 38 (offset: 37)) "MATCH (tom:Person {name:'Tom Hanks'})--{2}(colleagues:Person)"

why ? Document address

Neo4j Browser version: 5.11.0 Neo4j Server version: 5.3.0(enterprise)

Shichuan-Hao commented 1 year ago

image

stefano-ottolenghi commented 1 year ago

As the error states, your Neo4j (server) version does not support quantified path patterns, which were introduced in version 5.9 (whereas you are running 5.3). Updating your Neo4j installation will fix the issue.