neo4j-graphql / neo4j-graphql-java

Neo4j Labs Project: Pure JVM translation for GraphQL queries and mutations to Neo4j's Cypher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generated cypher does not validate with M15 openCypher grammar

crichey opened this issue · comments

Hi. I'm testing this with VERY simple GQL and the resulting cypher does not seem to validate with the M15 openCypher grammar. One such example of generated cypher is below:

MATCH (election:Election) WHERE election.electionName = $electionElectionName
RETURN election { .electionDate } AS election

The grammar chokes on the { in the return statement.

Opencypher doesnt have all features of neo4j cypher like pattern comprehensions, map projections or procedure calls.

Not sure why not.

Well, yes, I'm aware of that. However, don't you think the project would be more useful if it generated cypher that conformed to the specification?

Then many basic features of the transpiler would not be possible.

Sorry openCypher was not a target for this one.