Class: MatchClause
Defined in: lang-cypher/src/ast/query.ts:60
A MATCH clause that matches graph patterns against the database.
Implements
Constructors
Constructor
new MatchClause(
pattern,where?):MatchClause
Defined in: lang-cypher/src/ast/query.ts:63
Parameters
| Parameter | Type | Description |
|---|---|---|
pattern | PatternElChain[] | One or more path patterns to match. |
where? | ASTNode | Optional WHERE predicate; undefined if absent. |
Returns
MatchClause
Properties
optional
optional:
boolean=false
Defined in: lang-cypher/src/ast/query.ts:62
True when OPTIONAL MATCH; unmatched rows produce nulls instead of being filtered out.
pattern
pattern:
PatternElChain[]
Defined in: lang-cypher/src/ast/query.ts:65
One or more path patterns to match.
where?
optionalwhere?:ASTNode
Defined in: lang-cypher/src/ast/query.ts:67
Optional WHERE predicate; undefined if absent.
Methods
accept()
accept<
Ret,Arg>(visitor,arg?):Ret
Defined in: lang-cypher/src/ast/query.ts:70
Dispatches this node to the matching method on visitor.
Type Parameters
| Type Parameter |
|---|
Ret |
Arg |
Parameters
| Parameter | Type |
|---|---|
visitor | CypherVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret