UNPKG

@neo4j/cypher-builder

Version:

A programmatic API for building Cypher queries for Neo4j

17 lines (16 loc) 691 B
import { CypherASTNode } from "../../CypherASTNode"; import type { CypherEnvironment } from "../../Environment"; import type { Literal } from "../../references/Literal"; import type { Variable } from "../../references/Variable"; import type { Expr } from "../../types"; /** @group Clauses */ export type ProjectionColumn = Expr | [Expr, string | Variable | Literal]; export declare class Projection extends CypherASTNode { private readonly columns; private isStar; constructor(columns: Array<"*" | ProjectionColumn>); addColumns(columns: Array<"*" | ProjectionColumn>): void; /** @internal */ getCypher(env: CypherEnvironment): string; private serializeColumn; }