@neo4j/cypher-builder
Version:
A programmatic API for building Cypher queries for Neo4j
21 lines (20 loc) • 789 B
TypeScript
import type { CypherEnvironment } from "./Environment";
import type { CypherCompilable } from "./types";
/** Abstract class representing a Cypher Statement in the AST
* @internal
*/
export declare abstract class CypherASTNode implements CypherCompilable {
protected parent?: CypherASTNode;
/** @internal */
constructor(parent?: CypherASTNode);
/** @internal */
getRoot(): CypherASTNode;
/** Concrete tree traversal pattern to generate the Cypher on nested nodes
* @internal
*/
abstract getCypher(env: CypherEnvironment): string;
/** Sets the parent-child relationship for build traversal */
protected addChildren(...nodes: CypherCompilable[]): void;
protected setParent(node: CypherASTNode): void;
protected get isRoot(): boolean;
}