I think from Neo4j 2.2 you can explain for that, it only tries to compile the
query and will fail if it is invalid
db.execute("EXPLAIN "+ matchClause + " RETURN count(*)")
M
> Am 05.04.2015 um 20:40 schrieb Martin Troup <[email protected]>:
>
> Hello,
>
> I would like to validate just the MATCH clause of given Cypher query. More
> specifically I would like to write a Java method, that accepts Cypher query
> (only its MATCH clause though) as a parameter and returns true only if it has
> a valid structure. I was thinking of a regular expression, but I do not know
> how to write it so it covers MATCH clause valid structure... Could you help
> me with that?
>
> Thanks so much for a reply :)
> Martin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.