We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3563bf1 + 3dac2b8 commit cd1ae16Copy full SHA for cd1ae16
.changeset/giant-items-exist.md
@@ -0,0 +1,5 @@
1
+---
2
+"@neo4j/cypher-builder": patch
3
4
+
5
+Deprecates second parameter of `new ListComprehension` in favor of `.in`
src/expressions/list/ListComprehension.ts
@@ -38,6 +38,9 @@ export class ListComprehension extends CypherASTNode {
38
private listExpr: Expr | undefined;
39
private mapExpr: Expr | undefined; // Expression for list mapping
40
41
+ constructor(variable: Variable);
42
+ /** @deprecated Use `new ListComprehension(var1).in(expr)` instead */
43
+ constructor(variable: Variable, listExpr: Expr);
44
constructor(variable: Variable, listExpr?: Expr) {
45
super();
46
this.variable = variable;
0 commit comments