UNPKG

@neo4j/cypher-builder

Version:

A programmatic API for building Cypher queries for Neo4j

22 lines (21 loc) 726 B
import type { CypherASTNode } from "../../CypherASTNode"; import type { CypherEnvironment } from "../../Environment"; import { Clause } from "../Clause"; /** The result of multiple clauses concatenated with `Cypher.utils.concat` * @group Utils */ export declare class CompositeClause extends Clause { private readonly separator; protected _children: CypherASTNode[]; /** * @internal */ constructor(children: Array<Clause | undefined>, separator: string); concat(...clauses: Array<Clause | undefined>): this; get empty(): boolean; /** @internal */ getCypher(env: CypherEnvironment): string; private filterClauses; private filterEmptyComposite; private unwrapComposite; }