@neo4j/cypher-builder
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -17,5 +17,5 @@ import type { CypherEnvironment } from "../Environment"; | ||
constructor(subQuery: Clause); | ||
innerWith(firstParam: Variable, ...params: Variable[]): this; | ||
innerWith(...params: Variable[]): this; | ||
/** @internal */ | ||
getCypher(env: CypherEnvironment): string; | ||
} |
@@ -47,7 +47,9 @@ "use strict"; | ||
} | ||
innerWith(firstParam, ...params) { | ||
innerWith(...params) { | ||
if (this.importWith) | ||
throw new Error("Call import already set"); | ||
this.importWith = new ImportWith_1.ImportWith(this, [firstParam, ...params]); | ||
this.addChildren(this.importWith); | ||
if (params.length > 0) { | ||
this.importWith = new ImportWith_1.ImportWith(this, [...params]); | ||
this.addChildren(this.importWith); | ||
} | ||
return this; | ||
@@ -54,0 +56,0 @@ } |
{ | ||
"name": "@neo4j/cypher-builder", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A programmatic API for building Cypher queries for Neo4j", | ||
@@ -5,0 +5,0 @@ "exports": "./dist/index.js", |
338522
8397