Skip to main content

Class: PatternComprehension

Defined in: lang-cypher/src/ast/expression.ts:88

Pattern comprehension [(pattern) WHERE filter | projection] that collects matched paths into a list.

Implements

Constructors

Constructor

new PatternComprehension(pattern, where, expr): PatternComprehension

Defined in: lang-cypher/src/ast/expression.ts:89

Parameters

ParameterTypeDescription
patternPatternElChainThe graph pattern to match.
whereASTNodeOptional WHERE filter; null if omitted.
exprASTNodeProjection expression applied to each match.

Returns

PatternComprehension

Properties

expr

expr: ASTNode

Defined in: lang-cypher/src/ast/expression.ts:95

Projection expression applied to each match.


pattern

pattern: PatternElChain

Defined in: lang-cypher/src/ast/expression.ts:91

The graph pattern to match.


where

where: ASTNode

Defined in: lang-cypher/src/ast/expression.ts:93

Optional WHERE filter; null if omitted.

Methods

accept()

accept<Ret, Arg>(visitor, arg?): Ret

Defined in: lang-cypher/src/ast/expression.ts:98

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