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

@neo4j/cypher-builder

Package Overview
Dependencies
Maintainers
7
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.0.0 to 1.1.0

2

dist/apoc/cypher/run-first-column.js

@@ -71,3 +71,3 @@ "use strict";

}
parseVariablesInput(variables = []) {
parseVariablesInput(variables) {
if (Array.isArray(variables) || variables instanceof MapExpr_1.MapExpr)

@@ -74,0 +74,0 @@ return variables;

@@ -0,4 +1,3 @@

import Cypher from "..";
import { CypherFunction } from "../expressions/functions/CypherFunctions";
import type { PropertyRef } from "../references/PropertyRef";
import type { Variable } from "../references/Variable";
/**

@@ -16,2 +15,2 @@ * @group Cypher Functions

*/
export declare function convertFormat(temporalParam: Variable | PropertyRef, currentFormat: string, convertTo?: string): CypherFunction;
export declare function convertFormat(temporalParam: Cypher.Expr, currentFormat: string, convertTo?: string): CypherFunction;

@@ -17,5 +17,5 @@ import type { CypherEnvironment } from "../Environment";

constructor(subQuery: Clause);
innerWith(...params: Variable[]): this;
innerWith(firstParam: Variable, ...params: Variable[]): this;
/** @internal */
getCypher(env: CypherEnvironment): string;
}

@@ -47,6 +47,6 @@ "use strict";

}
innerWith(...params) {
innerWith(firstParam, ...params) {
if (this.importWith)
throw new Error("Call import already set");
this.importWith = new ImportWith_1.ImportWith(this, params);
this.importWith = new ImportWith_1.ImportWith(this, [firstParam, ...params]);
this.addChildren(this.importWith);

@@ -53,0 +53,0 @@ return this;

@@ -7,2 +7,3 @@ import type { CypherEnvironment } from "../Environment";

import type { Param } from "../references/Param";
import type { Variable } from "..";
type LengthOption = number | "*" | {

@@ -35,2 +36,3 @@ min: number;

withLength(option: LengthOption): this;
getVariables(): Variable[];
/**

@@ -37,0 +39,0 @@ * @internal

@@ -63,2 +63,7 @@ "use strict";

}
getVariables() {
const prevVars = this.previous?.getVariables() || [];
prevVars.push(this.element);
return prevVars;
}
/**

@@ -65,0 +70,0 @@ * @internal

@@ -7,2 +7,3 @@ import type { CypherEnvironment } from "../Environment";

import { PatternElement } from "./PatternElement";
import type { Variable } from "../references/Variable";
/** Represents a pattern of a single node or n-relationships to be used in clauses.

@@ -22,2 +23,3 @@ * @see [Cypher Documentation](https://neo4j.com/docs/cypher-manual/current/syntax/patterns/)

related(rel?: RelationshipRef): PartialPattern;
getVariables(): Variable[];
/**

@@ -24,0 +26,0 @@ * @internal

@@ -55,2 +55,7 @@ "use strict";

}
getVariables() {
const prevVars = this.previous?.getVariables() || [];
prevVars.push(this.element);
return prevVars;
}
/**

@@ -57,0 +62,0 @@ * @internal

import { CypherEnvironment } from "../Environment";
import type { NodeProperties, NodeRef } from "../references/NodeRef";
import type { RelationshipProperties, RelationshipRef } from "../references/RelationshipRef";
import type { Variable } from "../references/Variable";
import type { CypherCompilable } from "../types";

@@ -10,2 +11,7 @@ declare const customInspectSymbol: unique symbol;

abstract getCypher(env: CypherEnvironment): string;
/**
* Returns the ordered variables of the Pattern
* Note that even unnamed variables will be returned
*/
abstract getVariables(): Variable[];
protected serializeParameters(parameters: NodeProperties | RelationshipProperties, env: CypherEnvironment): string;

@@ -12,0 +18,0 @@ /** Custom string for browsers and templating

{
"name": "@neo4j/cypher-builder",
"version": "1.0.0",
"version": "1.1.0",
"description": "A programmatic API for building Cypher queries for Neo4j",

@@ -48,3 +48,3 @@ "exports": "./dist/index.js",

"@types/jest": "29.5.3",
"@types/node": "20.4.1",
"@types/node": "20.4.2",
"@typescript-eslint/eslint-plugin": "^6.0.0",

@@ -51,0 +51,0 @@ "@typescript-eslint/parser": "^6.0.0",

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