@neo4j/cypher-builder
Version:
A programmatic API for building Cypher queries for Neo4j
25 lines (24 loc) • 958 B
TypeScript
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);
/** Sets the list expression to be used for the comprehension. If called twice, the expression will be overriden */
in(listExpr: Expr): this;
map(mapExpr: Expr): this;
/**
* @internal
*/
getCypher(env: CypherEnvironment): string;
}