Verify cypher without db

Can the go driver verify cyphers without a connection to a database?
I'm looking for syntax errors in the cypher string and errors where for instance typed variables are not used.

I'm storing cyphers for later use and would like to verify them without going to the database.

Cheers,
Marius

Hello,

What you're looking for is the Go equivalent of Cypher DSL.

I have stumbled upon several implementations in the community, but I am not sure how well they are maintained:

Alternatively, if you can allow a roundtrip to the database, running EXPLAIN on the query and consuming the potential errors and warnings would work.

Thank you! I'll take a look a those.

Right now I'm playing around with Antlr4 and openCypher grammar, but was hoping to not having to handle all this my self :slight_smile:

That makes sense, just be careful that OpenCypher's grammar is a bit behind Neo4j's Cypher, so there may be instances of valid Cypher queries that are rejected by the grammar.
There is some internal work going on to have an updated Antlr grammar, but there is no guarantee that it will be published and when.

@florent_biville I just came across an issue related to this, which is a blocker and I have to put the antlr on ice.

Is there a place I can follow so I will know when the updated grammar is released?