Skip to main content

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​

ParameterTypeDescription
patternPatternElChain[]One or more path patterns to match.
where?ASTNodeOptional 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?​

optional where?: 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​

ParameterType
visitorCypherVisitor<Ret, Arg>
arg?Arg

Returns​

Ret

Implementation of​

ASTNode.accept