I want to collect all the properties used for filtering the data and do some validation on them. For example:
String query = "MATCH (start {name: 'v1'}) RETURN count(*) AS COUNT";
var statement = CypherParser.parse(query, options)
In the above query I want to collect vertex property "name". Similarly, I want to collect the properties used in other clauses like WHERE, WITH etc. Is there any possible way to access Clause list of Statement without using reflection so I can collect the properties?
Is it possible to convert org.neo4j.cypherdsl.core.Clause to org.neo4j.cypher.internal.ast.Clause so I can modify the parsed clauses and use Neo4jASTFactory class to create a new Statement?