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
70
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.16.0 to 1.17.0

dist/clauses/Finish.d.ts

3

dist/clauses/Create.d.ts

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

import { WithPathAssign } from "./mixins/WithPathAssign";
import { WithFinish } from "./mixins/clauses/WithFinish";
import { WithMerge } from "./mixins/clauses/WithMerge";

@@ -13,3 +14,3 @@ import { WithReturn } from "./mixins/clauses/WithReturn";

import { WithSet } from "./mixins/sub-clauses/WithSet";
export interface Create extends WithReturn, WithSet, WithPathAssign, WithWith, WithDelete, WithRemove, WithMerge {
export interface Create extends WithReturn, WithSet, WithPathAssign, WithWith, WithDelete, WithRemove, WithMerge, WithFinish {
}

@@ -16,0 +17,0 @@ /**

@@ -33,2 +33,3 @@ "use strict";

const WithPathAssign_1 = require("./mixins/WithPathAssign");
const WithFinish_1 = require("./mixins/clauses/WithFinish");
const WithMerge_1 = require("./mixins/clauses/WithMerge");

@@ -79,3 +80,3 @@ const WithReturn_1 = require("./mixins/clauses/WithReturn");

exports.Create = Create = Create_1 = __decorate([
(0, mixin_1.mixin)(WithReturn_1.WithReturn, WithSet_1.WithSet, WithPathAssign_1.WithPathAssign, WithWith_1.WithWith, WithDelete_1.WithDelete, WithRemove_1.WithRemove, WithMerge_1.WithMerge)
(0, mixin_1.mixin)(WithReturn_1.WithReturn, WithSet_1.WithSet, WithPathAssign_1.WithPathAssign, WithWith_1.WithWith, WithDelete_1.WithDelete, WithRemove_1.WithRemove, WithMerge_1.WithMerge, WithFinish_1.WithFinish)
], Create);

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

import { WithCreate } from "./mixins/clauses/WithCreate";
import { WithFinish } from "./mixins/clauses/WithFinish";
import { WithMerge } from "./mixins/clauses/WithMerge";

@@ -16,3 +17,3 @@ import { WithReturn } from "./mixins/clauses/WithReturn";

import { WithWhere } from "./mixins/sub-clauses/WithWhere";
export interface Match extends WithReturn, WithWhere, WithSet, WithWith, WithPathAssign, WithDelete, WithRemove, WithUnwind, WithCreate, WithMerge {
export interface Match extends WithReturn, WithWhere, WithSet, WithWith, WithPathAssign, WithDelete, WithRemove, WithUnwind, WithCreate, WithMerge, WithFinish {
}

@@ -19,0 +20,0 @@ /**

@@ -34,2 +34,3 @@ "use strict";

const WithCreate_1 = require("./mixins/clauses/WithCreate");
const WithFinish_1 = require("./mixins/clauses/WithFinish");
const WithMerge_1 = require("./mixins/clauses/WithMerge");

@@ -103,3 +104,3 @@ const WithReturn_1 = require("./mixins/clauses/WithReturn");

exports.Match = Match = Match_1 = __decorate([
(0, mixin_1.mixin)(WithReturn_1.WithReturn, WithWhere_1.WithWhere, WithSet_1.WithSet, WithWith_1.WithWith, WithPathAssign_1.WithPathAssign, WithDelete_1.WithDelete, WithRemove_1.WithRemove, WithUnwind_1.WithUnwind, WithCreate_1.WithCreate, WithMerge_1.WithMerge)
(0, mixin_1.mixin)(WithReturn_1.WithReturn, WithWhere_1.WithWhere, WithSet_1.WithSet, WithWith_1.WithWith, WithPathAssign_1.WithPathAssign, WithDelete_1.WithDelete, WithRemove_1.WithRemove, WithUnwind_1.WithUnwind, WithCreate_1.WithCreate, WithMerge_1.WithMerge, WithFinish_1.WithFinish)
], Match);

@@ -106,0 +107,0 @@ /**

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

import { WithCreate } from "./mixins/clauses/WithCreate";
import { WithFinish } from "./mixins/clauses/WithFinish";
import { WithReturn } from "./mixins/clauses/WithReturn";

@@ -14,3 +15,3 @@ import { WithWith } from "./mixins/clauses/WithWith";

import type { OnCreateParam } from "./sub-clauses/OnCreate";
export interface Merge extends WithReturn, WithSet, WithPathAssign, WithDelete, WithRemove, WithWith, WithCreate {
export interface Merge extends WithReturn, WithSet, WithPathAssign, WithDelete, WithRemove, WithWith, WithCreate, WithFinish {
}

@@ -17,0 +18,0 @@ /**

@@ -34,2 +34,3 @@ "use strict";

const WithCreate_1 = require("./mixins/clauses/WithCreate");
const WithFinish_1 = require("./mixins/clauses/WithFinish");
const WithReturn_1 = require("./mixins/clauses/WithReturn");

@@ -98,3 +99,3 @@ const WithWith_1 = require("./mixins/clauses/WithWith");

exports.Merge = Merge = Merge_1 = __decorate([
(0, mixin_1.mixin)(WithReturn_1.WithReturn, WithSet_1.WithSet, WithPathAssign_1.WithPathAssign, WithDelete_1.WithDelete, WithRemove_1.WithRemove, WithWith_1.WithWith, WithCreate_1.WithCreate)
(0, mixin_1.mixin)(WithReturn_1.WithReturn, WithSet_1.WithSet, WithPathAssign_1.WithPathAssign, WithDelete_1.WithDelete, WithRemove_1.WithRemove, WithWith_1.WithWith, WithCreate_1.WithCreate, WithFinish_1.WithFinish)
], Merge);
export { Call } from "./clauses/Call";
export { Create } from "./clauses/Create";
export { Finish } from "./clauses/Finish";
export { Foreach } from "./clauses/Foreach";

@@ -29,2 +30,5 @@ export { Match, OptionalMatch } from "./clauses/Match";

export * as cdc from "./namespaces/cdc/cdc";
export * as db from "./namespaces/db/db";
export * as genai from "./namespaces/genai/genai";
export * as vector from "./namespaces/vector/vector";
export { ListComprehension } from "./expressions/list/ListComprehension";

@@ -50,4 +54,2 @@ export { ListExpr as List } from "./expressions/list/ListExpr";

export { CypherProcedure as Procedure, VoidCypherProcedure as VoidProcedure } from "./procedures/CypherProcedure";
export * as db from "./namespaces/db/db";
export * as genai from "./namespaces/genai/genai";
export type { CypherEnvironment as Environment } from "./Environment";

@@ -54,0 +56,0 @@ export type { BuildConfig, Clause } from "./clauses/Clause";

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.contains = exports.xor = exports.or = exports.not = exports.and = exports.MapProjection = exports.Map = exports.PatternComprehension = exports.List = exports.ListComprehension = exports.cdc = exports.apoc = exports.Exists = exports.Count = exports.Collect = exports.isType = exports.isNotType = exports.TYPE = exports.Case = exports.Variable = exports.NamedVariable = exports.Relationship = exports.NamedRelationship = exports.Property = exports.Path = exports.NamedPath = exports.Param = exports.NamedParam = exports.Node = exports.NamedNode = exports.true = exports.false = exports.Null = exports.Literal = exports.Pattern = exports.labelExpr = exports.concat = exports.With = exports.Use = exports.Unwind = exports.Union = exports.Return = exports.RawCypher = exports.Raw = exports.Merge = exports.OptionalMatch = exports.Match = exports.Foreach = exports.Create = exports.Call = void 0;
exports.radians = exports.pi = exports.log10 = exports.log = exports.isNaN = exports.haversin = exports.floor = exports.exp = exports.e = exports.degrees = exports.cot = exports.cos = exports.ceil = exports.atan2 = exports.atan = exports.asin = exports.acos = exports.abs = exports.graph = exports.sum = exports.stDevP = exports.stDev = exports.percentileDisc = exports.percentileCont = exports.min = exports.max = exports.count = exports.collect = exports.avg = exports.Function = exports.pow = exports.plus = exports.multiply = exports.mod = exports.minus = exports.divide = exports.startsWith = exports.neq = exports.matches = exports.lte = exports.lt = exports.isNull = exports.isNotNull = exports.isNotNormalized = exports.isNormalized = exports.in = exports.gte = exports.gt = exports.eq = exports.endsWith = void 0;
exports.utils = exports.genai = exports.db = exports.VoidProcedure = exports.Procedure = exports.single = exports.none = exports.isEmpty = exports.exists = exports.any = exports.all = exports.time = exports.localtime = exports.localdatetime = exports.duration = exports.datetime = exports.date = exports.tan = exports.sqrt = exports.sin = exports.sign = exports.round = exports.rand = void 0;
exports.and = exports.MapProjection = exports.Map = exports.PatternComprehension = exports.List = exports.ListComprehension = exports.vector = exports.genai = exports.db = exports.cdc = exports.apoc = exports.Exists = exports.Count = exports.Collect = exports.isType = exports.isNotType = exports.TYPE = exports.Case = exports.Variable = exports.NamedVariable = exports.Relationship = exports.NamedRelationship = exports.Property = exports.Path = exports.NamedPath = exports.Param = exports.NamedParam = exports.Node = exports.NamedNode = exports.true = exports.false = exports.Null = exports.Literal = exports.Pattern = exports.labelExpr = exports.concat = exports.With = exports.Use = exports.Unwind = exports.Union = exports.Return = exports.RawCypher = exports.Raw = exports.Merge = exports.OptionalMatch = exports.Match = exports.Foreach = exports.Finish = exports.Create = exports.Call = void 0;
exports.isNaN = exports.haversin = exports.floor = exports.exp = exports.e = exports.degrees = exports.cot = exports.cos = exports.ceil = exports.atan2 = exports.atan = exports.asin = exports.acos = exports.abs = exports.graph = exports.sum = exports.stDevP = exports.stDev = exports.percentileDisc = exports.percentileCont = exports.min = exports.max = exports.count = exports.collect = exports.avg = exports.Function = exports.pow = exports.plus = exports.multiply = exports.mod = exports.minus = exports.divide = exports.startsWith = exports.neq = exports.matches = exports.lte = exports.lt = exports.isNull = exports.isNotNull = exports.isNotNormalized = exports.isNormalized = exports.in = exports.gte = exports.gt = exports.eq = exports.endsWith = exports.contains = exports.xor = exports.or = exports.not = void 0;
exports.utils = exports.VoidProcedure = exports.Procedure = exports.single = exports.none = exports.isEmpty = exports.exists = exports.any = exports.all = exports.time = exports.localtime = exports.localdatetime = exports.duration = exports.datetime = exports.date = exports.tan = exports.sqrt = exports.sin = exports.sign = exports.round = exports.rand = exports.radians = exports.pi = exports.log10 = exports.log = void 0;
// Clauses

@@ -56,2 +56,4 @@ var Call_1 = require("./clauses/Call");

Object.defineProperty(exports, "Create", { enumerable: true, get: function () { return Create_1.Create; } });
var Finish_1 = require("./clauses/Finish");
Object.defineProperty(exports, "Finish", { enumerable: true, get: function () { return Finish_1.Finish; } });
var Foreach_1 = require("./clauses/Foreach");

@@ -125,2 +127,5 @@ Object.defineProperty(exports, "Foreach", { enumerable: true, get: function () { return Foreach_1.Foreach; } });

exports.cdc = __importStar(require("./namespaces/cdc/cdc"));
exports.db = __importStar(require("./namespaces/db/db"));
exports.genai = __importStar(require("./namespaces/genai/genai"));
exports.vector = __importStar(require("./namespaces/vector/vector"));
// --Lists

@@ -230,5 +235,3 @@ var ListComprehension_1 = require("./expressions/list/ListComprehension");

Object.defineProperty(exports, "VoidProcedure", { enumerable: true, get: function () { return CypherProcedure_1.VoidCypherProcedure; } });
exports.db = __importStar(require("./namespaces/db/db"));
exports.genai = __importStar(require("./namespaces/genai/genai"));
// utils
exports.utils = __importStar(require("./utils/utils"));

@@ -5,3 +5,3 @@ import { CypherFunction } from "../../expressions/functions/CypherFunctions";

export * as cdc from "./cdc";
export * as index from "./dbIndex";
export * as index from "./index/dbIndex";
/** Returns all labels in the database

@@ -8,0 +8,0 @@ * @see [Neo4j Documentation](https://neo4j.com/docs/operations-manual/5/reference/procedures/#procedure_db_labels)

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

exports.cdc = __importStar(require("./cdc"));
exports.index = __importStar(require("./dbIndex"));
exports.index = __importStar(require("./index/dbIndex"));
/** Returns all labels in the database

@@ -52,0 +52,0 @@ * @see [Neo4j Documentation](https://neo4j.com/docs/operations-manual/5/reference/procedures/#procedure_db_labels)

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

@@ -5,0 +5,0 @@ "exports": "./dist/index.js",

@@ -15,7 +15,6 @@ # Cypher Builder

const movieNode = new Cypher.Node({
labels: ["Movie"],
});
const movieNode = new Cypher.Node();
const pattern = new Cypher.Pattern(movieNode, { labels: ["Movie"] });
const matchQuery = new Cypher.Match(movieNode)
const matchQuery = new Cypher.Match(pattern)
.where(movieNode, {

@@ -22,0 +21,0 @@ title: new Cypher.Param("The Matrix"),

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