@neo4j/cypher-builder
Advanced tools
Comparing version 1.22.1 to 1.22.2
@@ -0,1 +1,2 @@ | ||
import { type Pattern } from "../.."; | ||
import type { Expr } from "../../types"; | ||
@@ -64,2 +65,4 @@ import { CypherFunction } from "./CypherFunctions"; | ||
export declare function size(expr: Expr): CypherFunction; | ||
/** @deprecated size() with pattern is deprecated in Neo4j 5 */ | ||
export declare function size(expr: Pattern): CypherFunction; | ||
/** | ||
@@ -66,0 +69,0 @@ * @see [Cypher Documentation](https://neo4j.com/docs/cypher-manual/current/functions/scalar/#functions-startnode) |
@@ -44,2 +44,3 @@ "use strict"; | ||
exports.nullIf = nullIf; | ||
const __1 = require("../.."); | ||
const CypherFunctions_1 = require("./CypherFunctions"); | ||
@@ -119,9 +120,9 @@ /** | ||
} | ||
/** | ||
* @see [Cypher Documentation](https://neo4j.com/docs/cypher-manual/current/functions/scalar/#functions-size) | ||
* @group Cypher Functions | ||
* @category Scalar | ||
*/ | ||
function size(expr) { | ||
return new CypherFunctions_1.CypherFunction("size", [expr]); | ||
// Support for patterns in size() in Neo4j 4 | ||
// Using Raw to avoid adding Patterns to CypherFunction | ||
const sizeParam = new __1.Raw((env) => { | ||
return env.compile(expr); | ||
}); | ||
return new CypherFunctions_1.CypherFunction("size", [sizeParam]); | ||
} | ||
@@ -128,0 +129,0 @@ /** |
{ | ||
"name": "@neo4j/cypher-builder", | ||
"version": "1.22.1", | ||
"version": "1.22.2", | ||
"description": "A programmatic API for building Cypher queries for Neo4j", | ||
@@ -5,0 +5,0 @@ "exports": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
484667
11751