Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@neo4j/cypher-builder

Package Overview
Dependencies
Maintainers
0
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo4j/cypher-builder - npm Package Compare versions

Comparing version 1.22.1 to 1.22.2

3

dist/expressions/functions/scalar.d.ts

@@ -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)

13

dist/expressions/functions/scalar.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc