@neo4j/cypher-builder
Version:
A programmatic API for building Cypher queries for Neo4j
24 lines (23 loc) • 855 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, listExpr?: Expr);
in(listExpr: Expr): this;
map(mapExpr: Expr): this;
/**
* @internal
*/
getCypher(env: CypherEnvironment): string;
}