Skip to content

[Parser] Validate and collect all properties from a clause  #693

@snj07

Description

@snj07

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions