Expand description
Abstract Syntax Tree definitions for Cypher query language
Represents the parsed structure of Cypher queries including:
- Pattern matching (MATCH, OPTIONAL MATCH)
- Filtering (WHERE)
- Projections (RETURN, WITH)
- Mutations (CREATE, MERGE, DELETE, SET)
- Aggregations and ordering
- Hyperedge support for N-ary relationships
Structs§
- Create
Clause - CREATE clause for creating nodes and relationships
- Delete
Clause - DELETE clause
- Hyperedge
Pattern - Hyperedge pattern for N-ary relationships Example: (person)-[r:TRANSACTION]->(account1, account2, merchant)
- Match
Clause - MATCH clause for pattern matching
- Merge
Clause - MERGE clause for create-or-match
- Node
Pattern - Node pattern: (variable:Label {property: value})
- OrderBy
- ORDER BY clause
- Order
ByItem - Path
Pattern - Path pattern: p = (a)-[*]->(b)
- Query
- Top-level query representation
- Relationship
Pattern - Relationship pattern: [variable:Type {properties}]
- Relationship
Range - Relationship range for path queries: [*min..max]
- Remove
Clause - REMOVE clause for removing properties or labels
- Return
Clause - RETURN clause for projection
- Return
Item - Return item: expression AS alias
- SetClause
- SET clause for updating properties
- Where
Clause - WHERE clause for filtering
- With
Clause - WITH clause for chaining queries
Enums§
- Aggregation
Function - Aggregation functions
- Binary
Operator - Binary operators
- Direction
- Relationship direction
- Expression
- Expression tree
- Pattern
- Pattern matching expressions
- Remove
Item - SetItem
- Statement
- Individual query statement
- Unary
Operator - Unary operators
Type Aliases§
- Property
Map - Property map: {key: value, …}