Skip to main content

Class: ProjectionBody

Defined in: lang-cypher/src/ast/query.ts:209

Shared projection body for RETURN and WITH clauses.

Implements

Constructors

Constructor

new ProjectionBody(items, order?, skip?, limit?, distinct?): ProjectionBody

Defined in: lang-cypher/src/ast/query.ts:210

Parameters

ParameterTypeDefault valueDescription
items("*" | ASTNode | Aliased<ASTNode>)[]undefinedProjection items: '*' wildcard, plain expressions, or aliased expressions.
orderOrderItem[]nullORDER BY sort keys; null if no ordering is specified.
skipASTNodenullSKIP expression; null if absent.
limitASTNodenullLIMIT expression; null if absent.
distinctbooleanfalseTrue when the DISTINCT modifier is present.

Returns

ProjectionBody

Properties

distinct

distinct: boolean = false

Defined in: lang-cypher/src/ast/query.ts:220

True when the DISTINCT modifier is present.


items

items: ("*" | ASTNode | Aliased<ASTNode>)[]

Defined in: lang-cypher/src/ast/query.ts:212

Projection items: '*' wildcard, plain expressions, or aliased expressions.


limit

limit: ASTNode = null

Defined in: lang-cypher/src/ast/query.ts:218

LIMIT expression; null if absent.


order

order: OrderItem[] = null

Defined in: lang-cypher/src/ast/query.ts:214

ORDER BY sort keys; null if no ordering is specified.


skip

skip: ASTNode = null

Defined in: lang-cypher/src/ast/query.ts:216

SKIP expression; null if absent.

Methods

accept()

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

Defined in: lang-cypher/src/ast/query.ts:223

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