Module ast

Module ast 

Source
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§

CreateClause
CREATE clause for creating nodes and relationships
DeleteClause
DELETE clause
HyperedgePattern
Hyperedge pattern for N-ary relationships Example: (person)-[r:TRANSACTION]->(account1, account2, merchant)
MatchClause
MATCH clause for pattern matching
MergeClause
MERGE clause for create-or-match
NodePattern
Node pattern: (variable:Label {property: value})
OrderBy
ORDER BY clause
OrderByItem
PathPattern
Path pattern: p = (a)-[*]->(b)
Query
Top-level query representation
RelationshipPattern
Relationship pattern: [variable:Type {properties}]
RelationshipRange
Relationship range for path queries: [*min..max]
RemoveClause
REMOVE clause for removing properties or labels
ReturnClause
RETURN clause for projection
ReturnItem
Return item: expression AS alias
SetClause
SET clause for updating properties
WhereClause
WHERE clause for filtering
WithClause
WITH clause for chaining queries

Enums§

AggregationFunction
Aggregation functions
BinaryOperator
Binary operators
Direction
Relationship direction
Expression
Expression tree
Pattern
Pattern matching expressions
RemoveItem
SetItem
Statement
Individual query statement
UnaryOperator
Unary operators

Type Aliases§

PropertyMap
Property map: {key: value, …}