UNPKG

@neo4j/cypher-builder

Version:

A programmatic API for building Cypher queries for Neo4j

24 lines (23 loc) 771 B
import type { Expr } from ".."; import { HasLabel } from "../expressions/HasLabel"; import type { LabelExpr } from "../expressions/labels/label-expressions"; import { Label } from "./Label"; import type { NamedReference } from "./Variable"; import { Variable } from "./Variable"; /** Represents a node reference * @group Variables */ export declare class NodeRef extends Variable { constructor(); hasLabels(...labels: string[]): HasLabel; hasLabel(label: string | LabelExpr): HasLabel; label(label: string | Expr): Label; } /** Represents a node reference with a given name * @group Variables */ export declare class NamedNode extends NodeRef implements NamedReference { readonly id: string; constructor(id: string); get name(): string; }