UNPKG

@neo4j/cypher-builder

Version:

A programmatic API for building Cypher queries for Neo4j

20 lines (19 loc) 709 B
import type { CypherEnvironment } from "../Environment"; import { Clause } from "./Clause"; import { WithOrder } from "./mixins/sub-clauses/WithOrder"; import type { ProjectionColumn } from "./sub-clauses/Projection"; export interface Return extends WithOrder { } /** * @see {@link https://neo4j.com/docs/cypher-manual/current/clauses/return/ | Cypher Documentation} * @group Clauses */ export declare class Return extends Clause { private readonly projection; private isDistinct; constructor(...columns: Array<"*" | ProjectionColumn>); addColumns(...columns: Array<"*" | ProjectionColumn>): this; distinct(): this; /** @internal */ getCypher(env: CypherEnvironment): string; }