UNPKG

@neo4j/cypher-builder

Version:

A programmatic API for building Cypher queries for Neo4j

26 lines (25 loc) 965 B
import { CypherASTNode } from "../../CypherASTNode"; import type { CypherEnvironment } from "../../Environment"; import { WithWhere } from "../../clauses/mixins/sub-clauses/WithWhere"; import type { Variable } from "../../references/Variable"; import type { Expr } from "../../types"; export interface ListComprehension extends WithWhere { } /** Represents a List comprehension * @see {@link https://neo4j.com/docs/cypher-manual/current/syntax/lists/#cypher-list-comprehension | Cypher Documentation} * @group Lists */ export declare class ListComprehension extends CypherASTNode { private readonly variable; private listExpr; private mapExpr; constructor(variable: Variable); /** @deprecated Use `new ListComprehension(var1).in(expr)` instead */ constructor(variable: Variable, listExpr: Expr); in(listExpr: Expr): this; map(mapExpr: Expr): this; /** * @internal */ getCypher(env: CypherEnvironment): string; }