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.5.0 to 1.5.1

dist/clauses/Raw.d.ts

2

dist/clauses/Call.d.ts

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

import { WithReturn } from "./mixins/clauses/WithReturn";
import { WithUnwind } from "./mixins/clauses/WithUnwind";
import { WithWith } from "./mixins/clauses/WithWith";
import { WithUnwind } from "./mixins/clauses/WithUnwind";
export interface Call extends WithReturn, WithWith, WithUnwind {

@@ -9,0 +9,0 @@ }

@@ -28,10 +28,10 @@ "use strict";

exports.Call = void 0;
const compile_cypher_if_exists_1 = require("../utils/compile-cypher-if-exists");
const pad_block_1 = require("../utils/pad-block");
const Clause_1 = require("./Clause");
const pad_block_1 = require("../utils/pad-block");
const WithReturn_1 = require("./mixins/clauses/WithReturn");
const WithUnwind_1 = require("./mixins/clauses/WithUnwind");
const WithWith_1 = require("./mixins/clauses/WithWith");
const ImportWith_1 = require("./sub-clauses/ImportWith");
const WithReturn_1 = require("./mixins/clauses/WithReturn");
const mixin_1 = require("./utils/mixin");
const WithWith_1 = require("./mixins/clauses/WithWith");
const compile_cypher_if_exists_1 = require("../utils/compile-cypher-if-exists");
const WithUnwind_1 = require("./mixins/clauses/WithUnwind");
/**

@@ -38,0 +38,0 @@ * @see [Cypher Documentation](https://neo4j.com/docs/cypher-manual/current/clauses/call-subquery/)

@@ -24,4 +24,4 @@ "use strict";

const Environment_1 = require("../Environment");
const pad_block_1 = require("../utils/pad-block");
const to_cypher_params_1 = require("../utils/to-cypher-params");
const pad_block_1 = require("../utils/pad-block");
const customInspectSymbol = Symbol.for("nodejs.util.inspect.custom");

@@ -28,0 +28,0 @@ /** Represents a clause AST node

@@ -0,63 +1,62 @@

export { Call } from "./clauses/Call";
export { Create } from "./clauses/Create";
export { Foreach } from "./clauses/Foreach";
export { Match, OptionalMatch } from "./clauses/Match";
export { Create } from "./clauses/Create";
export { Merge } from "./clauses/Merge";
export { Call } from "./clauses/Call";
export { Raw, RawCypher } from "./clauses/Raw";
export { Return } from "./clauses/Return";
export { Union } from "./clauses/Union";
export { Unwind } from "./clauses/Unwind";
export { Use } from "./clauses/Use";
export { Return } from "./clauses/Return";
export { RawCypher } from "./clauses/RawCypher";
export { With } from "./clauses/With";
export { Unwind } from "./clauses/Unwind";
export { Union } from "./clauses/Union";
export { Foreach } from "./clauses/Foreach";
export { concat } from "./clauses/utils/concat";
export { labelExpr } from "./expressions/labels/label-expressions";
export { Pattern } from "./pattern/Pattern";
export { labelExpr } from "./expressions/labels/label-expressions";
export { NodeRef as Node, NamedNode } from "./references/NodeRef";
export { RelationshipRef as Relationship, NamedRelationship } from "./references/RelationshipRef";
export { Param, NamedParam } from "./references/Param";
export { Literal, CypherNull as Null, CypherFalse as false, CypherTrue as true } from "./references/Literal";
export { NamedNode, NodeRef as Node } from "./references/NodeRef";
export { NamedParam, Param } from "./references/Param";
export { NamedPath, Path } from "./references/Path";
export { PropertyRef as Property } from "./references/PropertyRef";
export { NamedRelationship, RelationshipRef as Relationship } from "./references/RelationshipRef";
export { NamedVariable, Variable } from "./references/Variable";
export { Literal, CypherNull as Null, CypherTrue as true, CypherFalse as false } from "./references/Literal";
export { Path, NamedPath } from "./references/Path";
export { PropertyRef as Property } from "./references/PropertyRef";
export { Case } from "./expressions/Case";
export { Count } from "./expressions/subquery/Count";
export { Exists } from "./expressions/subquery/Exists";
export { Count } from "./expressions/subquery/Count";
export { Case } from "./expressions/Case";
export * as apoc from "./namespaces/apoc/apoc";
export { ListComprehension } from "./expressions/list/ListComprehension";
export { ListExpr as List } from "./expressions/list/ListExpr";
export { PatternComprehension } from "./expressions/list/PatternComprehension";
export { ListExpr as List } from "./expressions/list/ListExpr";
export { MapExpr as Map } from "./expressions/map/MapExpr";
export { MapProjection } from "./expressions/map/MapProjection";
export { or, and, not, xor } from "./expressions/operations/boolean";
export { eq, neq, gt, gte, lt, lte, isNull, isNotNull, inOp as in, contains, startsWith, endsWith, matches, } from "./expressions/operations/comparison";
export { plus, minus, divide, multiply, mod, pow } from "./expressions/operations/math";
export { and, not, or, xor } from "./expressions/operations/boolean";
export { contains, endsWith, eq, gt, gte, inOp as in, isNotNull, isNull, lt, lte, matches, neq, startsWith, } from "./expressions/operations/comparison";
export { divide, minus, mod, multiply, plus, pow } from "./expressions/operations/math";
export { CypherFunction as Function } from "./expressions/functions/CypherFunctions";
export { cypherDatetime as datetime, cypherDate as date, cypherLocalTime as localtime, cypherLocalDatetime as localdatetime, cypherTime as time, duration, TemporalUnit, } from "./expressions/functions/temporal";
export { avg, collect, count, max, min, percentileCont, percentileDisc, stDev, stDevP, sum, } from "./expressions/functions/aggregation";
export * as graph from "./expressions/functions/graph";
export * from "./expressions/functions/list";
export { abs, acos, asin, atan, atan2, ceil, cos, cot, degrees, e, exp, floor, haversin, cypherIsNaN as isNaN, log, log10, pi, radians, rand, round, sign, sin, sqrt, tan, } from "./expressions/functions/math";
export * from "./expressions/functions/path";
export * from "./expressions/functions/scalar";
export { count, min, max, avg, sum, collect, percentileCont, percentileDisc, stDev, stDevP, } from "./expressions/functions/aggregation";
export * from "./expressions/functions/spatial";
export * from "./expressions/functions/string";
export * from "./expressions/functions/list";
export * from "./expressions/functions/spatial";
export * from "./expressions/functions/path";
export { abs, ceil, floor, cypherIsNaN as isNaN, rand, round, sign, e, exp, log, log10, sqrt, acos, asin, atan, atan2, cos, cot, degrees, haversin, pi, radians, sin, tan, } from "./expressions/functions/math";
export * as graph from "./expressions/functions/graph";
export { any, all, exists, single, none, isEmpty } from "./expressions/functions/predicate";
export { TemporalUnit, cypherDate as date, cypherDatetime as datetime, duration, cypherLocalDatetime as localdatetime, cypherLocalTime as localtime, cypherTime as time, } from "./expressions/functions/temporal";
export { all, any, exists, isEmpty, none, single } from "./expressions/functions/predicate";
export { CypherProcedure as Procedure, VoidCypherProcedure as VoidProcedure } from "./procedures/CypherProcedure";
export * as db from "./namespaces/db/db";
export type { CypherResult } from "./types";
export type { CypherEnvironment as Environment } from "./Environment";
export type { Clause } from "./clauses/Clause";
export type { CypherEnvironment as Environment } from "./Environment";
export type { ComparisonOp } from "./expressions/operations/comparison";
export type { BooleanOp } from "./expressions/operations/boolean";
export type { Expr, Predicate, Operation } from "./types";
export type { Yield } from "./procedures/Yield";
export type { Order } from "./clauses/sub-clauses/OrderBy";
export type { ProjectionColumn } from "./clauses/sub-clauses/Projection";
export type { SetParam } from "./clauses/sub-clauses/Set";
export type { CompositeClause } from "./clauses/utils/concat";
export type { HasLabel } from "./expressions/HasLabel";
export type { CypherAggregationFunction as AggregationFunction } from "./expressions/functions/aggregation";
export type { PredicateFunction } from "./expressions/functions/predicate";
export type { Order } from "./clauses/sub-clauses/OrderBy";
export type { CompositeClause } from "./clauses/utils/concat";
export type { LabelExpr, LabelOperator } from "./expressions/labels/label-expressions";
export type { CypherAggregationFunction as AggregationFunction } from "./expressions/functions/aggregation";
export type { HasLabel } from "./expressions/HasLabel";
export type { BooleanOp } from "./expressions/operations/boolean";
export type { ComparisonOp } from "./expressions/operations/comparison";
export type { Yield } from "./procedures/Yield";
export type { CypherResult, Expr, Operation, Predicate } from "./types";
export type { InputArgument } from "./utils/normalize-variable";
export * as utils from "./utils/utils";

@@ -47,66 +47,67 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.isNull = exports.lte = exports.lt = exports.gte = exports.gt = exports.neq = exports.eq = exports.xor = exports.not = exports.and = exports.or = exports.MapProjection = exports.Map = exports.List = exports.PatternComprehension = exports.ListComprehension = exports.apoc = exports.Case = exports.Count = exports.Exists = exports.Property = exports.NamedPath = exports.Path = exports.false = exports.true = exports.Null = exports.Literal = exports.Variable = exports.NamedVariable = exports.NamedParam = exports.Param = exports.NamedRelationship = exports.Relationship = exports.NamedNode = exports.Node = exports.labelExpr = exports.Pattern = exports.concat = exports.Foreach = exports.Union = exports.Unwind = exports.With = exports.RawCypher = exports.Return = exports.Use = exports.Call = exports.Merge = exports.Create = exports.OptionalMatch = exports.Match = void 0;
exports.pi = exports.haversin = exports.degrees = exports.cot = exports.cos = exports.atan2 = exports.atan = exports.asin = exports.acos = exports.sqrt = exports.log10 = exports.log = exports.exp = exports.e = exports.sign = exports.round = exports.rand = exports.isNaN = exports.floor = exports.ceil = exports.abs = exports.stDevP = exports.stDev = exports.percentileDisc = exports.percentileCont = exports.collect = exports.sum = exports.avg = exports.max = exports.min = exports.count = exports.duration = exports.time = exports.localdatetime = exports.localtime = exports.date = exports.datetime = exports.Function = exports.pow = exports.mod = exports.multiply = exports.divide = exports.minus = exports.plus = exports.matches = exports.endsWith = exports.startsWith = exports.contains = exports.in = exports.isNotNull = void 0;
exports.utils = exports.db = exports.VoidProcedure = exports.Procedure = exports.isEmpty = exports.none = exports.single = exports.exists = exports.all = exports.any = exports.graph = exports.tan = exports.sin = exports.radians = void 0;
exports.in = exports.gte = exports.gt = exports.eq = exports.endsWith = exports.contains = exports.xor = exports.or = exports.not = exports.and = exports.MapProjection = exports.Map = exports.PatternComprehension = exports.List = exports.ListComprehension = exports.apoc = exports.Exists = exports.Count = 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.date = exports.tan = exports.sqrt = exports.sin = exports.sign = exports.round = exports.rand = 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 = void 0;
exports.utils = 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 = void 0;
// Clauses
var Call_1 = require("./clauses/Call");
Object.defineProperty(exports, "Call", { enumerable: true, get: function () { return Call_1.Call; } });
var Create_1 = require("./clauses/Create");
Object.defineProperty(exports, "Create", { enumerable: true, get: function () { return Create_1.Create; } });
var Foreach_1 = require("./clauses/Foreach");
Object.defineProperty(exports, "Foreach", { enumerable: true, get: function () { return Foreach_1.Foreach; } });
var Match_1 = require("./clauses/Match");
Object.defineProperty(exports, "Match", { enumerable: true, get: function () { return Match_1.Match; } });
Object.defineProperty(exports, "OptionalMatch", { enumerable: true, get: function () { return Match_1.OptionalMatch; } });
var Create_1 = require("./clauses/Create");
Object.defineProperty(exports, "Create", { enumerable: true, get: function () { return Create_1.Create; } });
var Merge_1 = require("./clauses/Merge");
Object.defineProperty(exports, "Merge", { enumerable: true, get: function () { return Merge_1.Merge; } });
var Call_1 = require("./clauses/Call");
Object.defineProperty(exports, "Call", { enumerable: true, get: function () { return Call_1.Call; } });
var Raw_1 = require("./clauses/Raw");
Object.defineProperty(exports, "Raw", { enumerable: true, get: function () { return Raw_1.Raw; } });
Object.defineProperty(exports, "RawCypher", { enumerable: true, get: function () { return Raw_1.RawCypher; } });
var Return_1 = require("./clauses/Return");
Object.defineProperty(exports, "Return", { enumerable: true, get: function () { return Return_1.Return; } });
var Union_1 = require("./clauses/Union");
Object.defineProperty(exports, "Union", { enumerable: true, get: function () { return Union_1.Union; } });
var Unwind_1 = require("./clauses/Unwind");
Object.defineProperty(exports, "Unwind", { enumerable: true, get: function () { return Unwind_1.Unwind; } });
var Use_1 = require("./clauses/Use");
Object.defineProperty(exports, "Use", { enumerable: true, get: function () { return Use_1.Use; } });
var Return_1 = require("./clauses/Return");
Object.defineProperty(exports, "Return", { enumerable: true, get: function () { return Return_1.Return; } });
var RawCypher_1 = require("./clauses/RawCypher");
Object.defineProperty(exports, "RawCypher", { enumerable: true, get: function () { return RawCypher_1.RawCypher; } });
var With_1 = require("./clauses/With");
Object.defineProperty(exports, "With", { enumerable: true, get: function () { return With_1.With; } });
var Unwind_1 = require("./clauses/Unwind");
Object.defineProperty(exports, "Unwind", { enumerable: true, get: function () { return Unwind_1.Unwind; } });
var Union_1 = require("./clauses/Union");
Object.defineProperty(exports, "Union", { enumerable: true, get: function () { return Union_1.Union; } });
var Foreach_1 = require("./clauses/Foreach");
Object.defineProperty(exports, "Foreach", { enumerable: true, get: function () { return Foreach_1.Foreach; } });
var concat_1 = require("./clauses/utils/concat");
Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return concat_1.concat; } });
// Patterns
var label_expressions_1 = require("./expressions/labels/label-expressions");
Object.defineProperty(exports, "labelExpr", { enumerable: true, get: function () { return label_expressions_1.labelExpr; } });
var Pattern_1 = require("./pattern/Pattern");
Object.defineProperty(exports, "Pattern", { enumerable: true, get: function () { return Pattern_1.Pattern; } });
var label_expressions_1 = require("./expressions/labels/label-expressions");
Object.defineProperty(exports, "labelExpr", { enumerable: true, get: function () { return label_expressions_1.labelExpr; } });
// Variables and references
var Literal_1 = require("./references/Literal");
Object.defineProperty(exports, "Literal", { enumerable: true, get: function () { return Literal_1.Literal; } });
Object.defineProperty(exports, "Null", { enumerable: true, get: function () { return Literal_1.CypherNull; } });
Object.defineProperty(exports, "false", { enumerable: true, get: function () { return Literal_1.CypherFalse; } });
Object.defineProperty(exports, "true", { enumerable: true, get: function () { return Literal_1.CypherTrue; } });
var NodeRef_1 = require("./references/NodeRef");
Object.defineProperty(exports, "NamedNode", { enumerable: true, get: function () { return NodeRef_1.NamedNode; } });
Object.defineProperty(exports, "Node", { enumerable: true, get: function () { return NodeRef_1.NodeRef; } });
Object.defineProperty(exports, "NamedNode", { enumerable: true, get: function () { return NodeRef_1.NamedNode; } });
var RelationshipRef_1 = require("./references/RelationshipRef");
Object.defineProperty(exports, "Relationship", { enumerable: true, get: function () { return RelationshipRef_1.RelationshipRef; } });
Object.defineProperty(exports, "NamedRelationship", { enumerable: true, get: function () { return RelationshipRef_1.NamedRelationship; } });
var Param_1 = require("./references/Param");
Object.defineProperty(exports, "NamedParam", { enumerable: true, get: function () { return Param_1.NamedParam; } });
Object.defineProperty(exports, "Param", { enumerable: true, get: function () { return Param_1.Param; } });
Object.defineProperty(exports, "NamedParam", { enumerable: true, get: function () { return Param_1.NamedParam; } });
var Variable_1 = require("./references/Variable");
Object.defineProperty(exports, "NamedVariable", { enumerable: true, get: function () { return Variable_1.NamedVariable; } });
Object.defineProperty(exports, "Variable", { enumerable: true, get: function () { return Variable_1.Variable; } });
var Literal_1 = require("./references/Literal");
Object.defineProperty(exports, "Literal", { enumerable: true, get: function () { return Literal_1.Literal; } });
Object.defineProperty(exports, "Null", { enumerable: true, get: function () { return Literal_1.CypherNull; } });
Object.defineProperty(exports, "true", { enumerable: true, get: function () { return Literal_1.CypherTrue; } });
Object.defineProperty(exports, "false", { enumerable: true, get: function () { return Literal_1.CypherFalse; } });
var Path_1 = require("./references/Path");
Object.defineProperty(exports, "NamedPath", { enumerable: true, get: function () { return Path_1.NamedPath; } });
Object.defineProperty(exports, "Path", { enumerable: true, get: function () { return Path_1.Path; } });
Object.defineProperty(exports, "NamedPath", { enumerable: true, get: function () { return Path_1.NamedPath; } });
var PropertyRef_1 = require("./references/PropertyRef");
Object.defineProperty(exports, "Property", { enumerable: true, get: function () { return PropertyRef_1.PropertyRef; } });
var RelationshipRef_1 = require("./references/RelationshipRef");
Object.defineProperty(exports, "NamedRelationship", { enumerable: true, get: function () { return RelationshipRef_1.NamedRelationship; } });
Object.defineProperty(exports, "Relationship", { enumerable: true, get: function () { return RelationshipRef_1.RelationshipRef; } });
var Variable_1 = require("./references/Variable");
Object.defineProperty(exports, "NamedVariable", { enumerable: true, get: function () { return Variable_1.NamedVariable; } });
Object.defineProperty(exports, "Variable", { enumerable: true, get: function () { return Variable_1.Variable; } });
// Expressions
var Case_1 = require("./expressions/Case");
Object.defineProperty(exports, "Case", { enumerable: true, get: function () { return Case_1.Case; } });
var Count_1 = require("./expressions/subquery/Count");
Object.defineProperty(exports, "Count", { enumerable: true, get: function () { return Count_1.Count; } });
var Exists_1 = require("./expressions/subquery/Exists");
Object.defineProperty(exports, "Exists", { enumerable: true, get: function () { return Exists_1.Exists; } });
var Count_1 = require("./expressions/subquery/Count");
Object.defineProperty(exports, "Count", { enumerable: true, get: function () { return Count_1.Count; } });
var Case_1 = require("./expressions/Case");
Object.defineProperty(exports, "Case", { enumerable: true, get: function () { return Case_1.Case; } });
// --Apoc

@@ -117,6 +118,6 @@ exports.apoc = __importStar(require("./namespaces/apoc/apoc"));

Object.defineProperty(exports, "ListComprehension", { enumerable: true, get: function () { return ListComprehension_1.ListComprehension; } });
var ListExpr_1 = require("./expressions/list/ListExpr");
Object.defineProperty(exports, "List", { enumerable: true, get: function () { return ListExpr_1.ListExpr; } });
var PatternComprehension_1 = require("./expressions/list/PatternComprehension");
Object.defineProperty(exports, "PatternComprehension", { enumerable: true, get: function () { return PatternComprehension_1.PatternComprehension; } });
var ListExpr_1 = require("./expressions/list/ListExpr");
Object.defineProperty(exports, "List", { enumerable: true, get: function () { return ListExpr_1.ListExpr; } });
// --Map

@@ -129,26 +130,26 @@ var MapExpr_1 = require("./expressions/map/MapExpr");

var boolean_1 = require("./expressions/operations/boolean");
Object.defineProperty(exports, "or", { enumerable: true, get: function () { return boolean_1.or; } });
Object.defineProperty(exports, "and", { enumerable: true, get: function () { return boolean_1.and; } });
Object.defineProperty(exports, "not", { enumerable: true, get: function () { return boolean_1.not; } });
Object.defineProperty(exports, "or", { enumerable: true, get: function () { return boolean_1.or; } });
Object.defineProperty(exports, "xor", { enumerable: true, get: function () { return boolean_1.xor; } });
var comparison_1 = require("./expressions/operations/comparison");
Object.defineProperty(exports, "contains", { enumerable: true, get: function () { return comparison_1.contains; } });
Object.defineProperty(exports, "endsWith", { enumerable: true, get: function () { return comparison_1.endsWith; } });
Object.defineProperty(exports, "eq", { enumerable: true, get: function () { return comparison_1.eq; } });
Object.defineProperty(exports, "neq", { enumerable: true, get: function () { return comparison_1.neq; } });
Object.defineProperty(exports, "gt", { enumerable: true, get: function () { return comparison_1.gt; } });
Object.defineProperty(exports, "gte", { enumerable: true, get: function () { return comparison_1.gte; } });
Object.defineProperty(exports, "in", { enumerable: true, get: function () { return comparison_1.inOp; } });
Object.defineProperty(exports, "isNotNull", { enumerable: true, get: function () { return comparison_1.isNotNull; } });
Object.defineProperty(exports, "isNull", { enumerable: true, get: function () { return comparison_1.isNull; } });
Object.defineProperty(exports, "lt", { enumerable: true, get: function () { return comparison_1.lt; } });
Object.defineProperty(exports, "lte", { enumerable: true, get: function () { return comparison_1.lte; } });
Object.defineProperty(exports, "isNull", { enumerable: true, get: function () { return comparison_1.isNull; } });
Object.defineProperty(exports, "isNotNull", { enumerable: true, get: function () { return comparison_1.isNotNull; } });
Object.defineProperty(exports, "in", { enumerable: true, get: function () { return comparison_1.inOp; } });
Object.defineProperty(exports, "contains", { enumerable: true, get: function () { return comparison_1.contains; } });
Object.defineProperty(exports, "matches", { enumerable: true, get: function () { return comparison_1.matches; } });
Object.defineProperty(exports, "neq", { enumerable: true, get: function () { return comparison_1.neq; } });
Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return comparison_1.startsWith; } });
Object.defineProperty(exports, "endsWith", { enumerable: true, get: function () { return comparison_1.endsWith; } });
Object.defineProperty(exports, "matches", { enumerable: true, get: function () { return comparison_1.matches; } });
var math_1 = require("./expressions/operations/math");
Object.defineProperty(exports, "plus", { enumerable: true, get: function () { return math_1.plus; } });
Object.defineProperty(exports, "divide", { enumerable: true, get: function () { return math_1.divide; } });
Object.defineProperty(exports, "minus", { enumerable: true, get: function () { return math_1.minus; } });
Object.defineProperty(exports, "divide", { enumerable: true, get: function () { return math_1.divide; } });
Object.defineProperty(exports, "mod", { enumerable: true, get: function () { return math_1.mod; } });
Object.defineProperty(exports, "multiply", { enumerable: true, get: function () { return math_1.multiply; } });
Object.defineProperty(exports, "mod", { enumerable: true, get: function () { return math_1.mod; } });
Object.defineProperty(exports, "plus", { enumerable: true, get: function () { return math_1.plus; } });
Object.defineProperty(exports, "pow", { enumerable: true, get: function () { return math_1.pow; } });

@@ -158,17 +159,8 @@ // --Functions

Object.defineProperty(exports, "Function", { enumerable: true, get: function () { return CypherFunctions_1.CypherFunction; } });
var temporal_1 = require("./expressions/functions/temporal");
Object.defineProperty(exports, "datetime", { enumerable: true, get: function () { return temporal_1.cypherDatetime; } });
Object.defineProperty(exports, "date", { enumerable: true, get: function () { return temporal_1.cypherDate; } });
Object.defineProperty(exports, "localtime", { enumerable: true, get: function () { return temporal_1.cypherLocalTime; } });
Object.defineProperty(exports, "localdatetime", { enumerable: true, get: function () { return temporal_1.cypherLocalDatetime; } });
Object.defineProperty(exports, "time", { enumerable: true, get: function () { return temporal_1.cypherTime; } });
Object.defineProperty(exports, "duration", { enumerable: true, get: function () { return temporal_1.duration; } });
__exportStar(require("./expressions/functions/scalar"), exports);
var aggregation_1 = require("./expressions/functions/aggregation");
Object.defineProperty(exports, "avg", { enumerable: true, get: function () { return aggregation_1.avg; } });
Object.defineProperty(exports, "collect", { enumerable: true, get: function () { return aggregation_1.collect; } });
Object.defineProperty(exports, "count", { enumerable: true, get: function () { return aggregation_1.count; } });
Object.defineProperty(exports, "max", { enumerable: true, get: function () { return aggregation_1.max; } });
Object.defineProperty(exports, "min", { enumerable: true, get: function () { return aggregation_1.min; } });
Object.defineProperty(exports, "max", { enumerable: true, get: function () { return aggregation_1.max; } });
Object.defineProperty(exports, "avg", { enumerable: true, get: function () { return aggregation_1.avg; } });
Object.defineProperty(exports, "sum", { enumerable: true, get: function () { return aggregation_1.sum; } });
Object.defineProperty(exports, "collect", { enumerable: true, get: function () { return aggregation_1.collect; } });
Object.defineProperty(exports, "percentileCont", { enumerable: true, get: function () { return aggregation_1.percentileCont; } });

@@ -178,19 +170,7 @@ Object.defineProperty(exports, "percentileDisc", { enumerable: true, get: function () { return aggregation_1.percentileDisc; } });

Object.defineProperty(exports, "stDevP", { enumerable: true, get: function () { return aggregation_1.stDevP; } });
__exportStar(require("./expressions/functions/string"), exports);
Object.defineProperty(exports, "sum", { enumerable: true, get: function () { return aggregation_1.sum; } });
exports.graph = __importStar(require("./expressions/functions/graph"));
__exportStar(require("./expressions/functions/list"), exports);
__exportStar(require("./expressions/functions/spatial"), exports);
__exportStar(require("./expressions/functions/path"), exports);
var math_2 = require("./expressions/functions/math");
Object.defineProperty(exports, "abs", { enumerable: true, get: function () { return math_2.abs; } });
Object.defineProperty(exports, "ceil", { enumerable: true, get: function () { return math_2.ceil; } });
Object.defineProperty(exports, "floor", { enumerable: true, get: function () { return math_2.floor; } });
Object.defineProperty(exports, "isNaN", { enumerable: true, get: function () { return math_2.cypherIsNaN; } });
Object.defineProperty(exports, "rand", { enumerable: true, get: function () { return math_2.rand; } });
Object.defineProperty(exports, "round", { enumerable: true, get: function () { return math_2.round; } });
Object.defineProperty(exports, "sign", { enumerable: true, get: function () { return math_2.sign; } });
Object.defineProperty(exports, "e", { enumerable: true, get: function () { return math_2.e; } });
Object.defineProperty(exports, "exp", { enumerable: true, get: function () { return math_2.exp; } });
Object.defineProperty(exports, "log", { enumerable: true, get: function () { return math_2.log; } });
Object.defineProperty(exports, "log10", { enumerable: true, get: function () { return math_2.log10; } });
Object.defineProperty(exports, "sqrt", { enumerable: true, get: function () { return math_2.sqrt; } });
Object.defineProperty(exports, "acos", { enumerable: true, get: function () { return math_2.acos; } });

@@ -200,18 +180,39 @@ Object.defineProperty(exports, "asin", { enumerable: true, get: function () { return math_2.asin; } });

Object.defineProperty(exports, "atan2", { enumerable: true, get: function () { return math_2.atan2; } });
Object.defineProperty(exports, "ceil", { enumerable: true, get: function () { return math_2.ceil; } });
Object.defineProperty(exports, "cos", { enumerable: true, get: function () { return math_2.cos; } });
Object.defineProperty(exports, "cot", { enumerable: true, get: function () { return math_2.cot; } });
Object.defineProperty(exports, "degrees", { enumerable: true, get: function () { return math_2.degrees; } });
Object.defineProperty(exports, "e", { enumerable: true, get: function () { return math_2.e; } });
Object.defineProperty(exports, "exp", { enumerable: true, get: function () { return math_2.exp; } });
Object.defineProperty(exports, "floor", { enumerable: true, get: function () { return math_2.floor; } });
Object.defineProperty(exports, "haversin", { enumerable: true, get: function () { return math_2.haversin; } });
Object.defineProperty(exports, "isNaN", { enumerable: true, get: function () { return math_2.cypherIsNaN; } });
Object.defineProperty(exports, "log", { enumerable: true, get: function () { return math_2.log; } });
Object.defineProperty(exports, "log10", { enumerable: true, get: function () { return math_2.log10; } });
Object.defineProperty(exports, "pi", { enumerable: true, get: function () { return math_2.pi; } });
Object.defineProperty(exports, "radians", { enumerable: true, get: function () { return math_2.radians; } });
Object.defineProperty(exports, "rand", { enumerable: true, get: function () { return math_2.rand; } });
Object.defineProperty(exports, "round", { enumerable: true, get: function () { return math_2.round; } });
Object.defineProperty(exports, "sign", { enumerable: true, get: function () { return math_2.sign; } });
Object.defineProperty(exports, "sin", { enumerable: true, get: function () { return math_2.sin; } });
Object.defineProperty(exports, "sqrt", { enumerable: true, get: function () { return math_2.sqrt; } });
Object.defineProperty(exports, "tan", { enumerable: true, get: function () { return math_2.tan; } });
exports.graph = __importStar(require("./expressions/functions/graph"));
__exportStar(require("./expressions/functions/path"), exports);
__exportStar(require("./expressions/functions/scalar"), exports);
__exportStar(require("./expressions/functions/spatial"), exports);
__exportStar(require("./expressions/functions/string"), exports);
var temporal_1 = require("./expressions/functions/temporal");
Object.defineProperty(exports, "date", { enumerable: true, get: function () { return temporal_1.cypherDate; } });
Object.defineProperty(exports, "datetime", { enumerable: true, get: function () { return temporal_1.cypherDatetime; } });
Object.defineProperty(exports, "duration", { enumerable: true, get: function () { return temporal_1.duration; } });
Object.defineProperty(exports, "localdatetime", { enumerable: true, get: function () { return temporal_1.cypherLocalDatetime; } });
Object.defineProperty(exports, "localtime", { enumerable: true, get: function () { return temporal_1.cypherLocalTime; } });
Object.defineProperty(exports, "time", { enumerable: true, get: function () { return temporal_1.cypherTime; } });
var predicate_1 = require("./expressions/functions/predicate");
Object.defineProperty(exports, "all", { enumerable: true, get: function () { return predicate_1.all; } });
Object.defineProperty(exports, "any", { enumerable: true, get: function () { return predicate_1.any; } });
Object.defineProperty(exports, "all", { enumerable: true, get: function () { return predicate_1.all; } });
Object.defineProperty(exports, "exists", { enumerable: true, get: function () { return predicate_1.exists; } });
Object.defineProperty(exports, "isEmpty", { enumerable: true, get: function () { return predicate_1.isEmpty; } });
Object.defineProperty(exports, "none", { enumerable: true, get: function () { return predicate_1.none; } });
Object.defineProperty(exports, "single", { enumerable: true, get: function () { return predicate_1.single; } });
Object.defineProperty(exports, "none", { enumerable: true, get: function () { return predicate_1.none; } });
Object.defineProperty(exports, "isEmpty", { enumerable: true, get: function () { return predicate_1.isEmpty; } });
// Procedures

@@ -218,0 +219,0 @@ var CypherProcedure_1 = require("./procedures/CypherProcedure");

@@ -31,3 +31,3 @@ import type { Expr } from "../../types";

* @category Scalar
* @deprecated Use `elementId` instead
* @deprecated Use {@link elementId} instead
*/

@@ -34,0 +34,0 @@ export declare function id(variable: Expr): CypherFunction;

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

* @category Scalar
* @deprecated Use `elementId` instead
* @deprecated Use {@link elementId} instead
*/

@@ -66,0 +66,0 @@ function id(variable) {

import type { Clause } from "../../../clauses/Clause";
import { CypherFunction } from "../../../expressions/functions/CypherFunctions";
import { MapExpr } from "../../../expressions/map/MapExpr";
import type { Variable } from "../../../references/Variable";
import { MapExpr } from "../../../expressions/map/MapExpr";
import { CypherFunction } from "../../../expressions/functions/CypherFunctions";
import type { Expr } from "../../../types";

@@ -6,0 +6,0 @@ /**

@@ -22,4 +22,4 @@ "use strict";

exports.runFirstColumnSingle = exports.runFirstColumnMany = void 0;
const CypherFunctions_1 = require("../../../expressions/functions/CypherFunctions");
const MapExpr_1 = require("../../../expressions/map/MapExpr");
const CypherFunctions_1 = require("../../../expressions/functions/CypherFunctions");
/**

@@ -26,0 +26,0 @@ * @group Cypher Functions

@@ -1,20 +0,20 @@

import type { PropertyRef } from "./references/PropertyRef";
import type { Raw } from ".";
import type { CypherEnvironment } from "./Environment";
import type { Case } from "./expressions/Case";
import type { HasLabel } from "./expressions/HasLabel";
import type { CypherFunction } from "./expressions/functions/CypherFunctions";
import type { Literal } from "./references/Literal";
import type { Exists } from "./expressions/subquery/Exists";
import type { CypherEnvironment } from "./Environment";
import type { PredicateFunction } from "./expressions/functions/predicate";
import type { ListComprehension } from "./expressions/list/ListComprehension";
import type { ListExpr } from "./expressions/list/ListExpr";
import type { ListIndex } from "./expressions/list/ListIndex";
import type { PatternComprehension } from "./expressions/list/PatternComprehension";
import type { MapExpr } from "./expressions/map/MapExpr";
import type { MapProjection } from "./expressions/map/MapProjection";
import type { BooleanOp } from "./expressions/operations/boolean";
import type { ComparisonOp } from "./expressions/operations/comparison";
import type { RawCypher } from "./clauses/RawCypher";
import type { PredicateFunction } from "./expressions/functions/predicate";
import type { Case } from "./expressions/Case";
import type { MathOp } from "./expressions/operations/math";
import type { ListComprehension } from "./expressions/list/ListComprehension";
import type { PatternComprehension } from "./expressions/list/PatternComprehension";
import type { ListExpr } from "./expressions/list/ListExpr";
import type { MapProjection } from "./expressions/map/MapProjection";
import type { HasLabel } from "./expressions/HasLabel";
import type { ListIndex } from "./expressions/list/ListIndex";
import type { Count } from "./expressions/subquery/Count";
import type { Exists } from "./expressions/subquery/Exists";
import type { Literal } from "./references/Literal";
import type { PropertyRef } from "./references/PropertyRef";
import type { Variable } from "./references/Variable";

@@ -26,4 +26,4 @@ export type Operation = BooleanOp | ComparisonOp | MathOp;

export type Expr = Operation | Variable | Literal | PropertyRef | CypherFunction | Predicate | ListComprehension | PatternComprehension | MapExpr | MapProjection | ListExpr | ListIndex | Case<ComparisonOp>;
/** Represents a predicate statement (i.e returns a boolean). Note that RawCypher is only added for compatibility */
export type Predicate = BooleanOp | ComparisonOp | RawCypher | Exists | Count | PredicateFunction | Literal<boolean> | Case | HasLabel;
/** Represents a predicate statement (i.e returns a boolean). Note that Raw is only added for compatibility */
export type Predicate = BooleanOp | ComparisonOp | Raw | Exists | Count | PredicateFunction | Literal<boolean> | Case | HasLabel;
export type CypherResult = {

@@ -30,0 +30,0 @@ cypher: string;

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

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

"changeset": "changeset",
"release": "npm run build && changeset publish"
"release": "npm run build && changeset publish",
"prettier": "prettier . --check --ignore-path .gitignore"
},

@@ -49,3 +50,3 @@ "repository": {

"@types/jest": "29.5.5",
"@types/node": "20.8.2",
"@types/node": "20.8.3",
"@typescript-eslint/eslint-plugin": "^6.0.0",

@@ -55,10 +56,11 @@ "@typescript-eslint/parser": "^6.0.0",

"eslint-config-prettier": "^9.0.0",
"expect-type": "0.17.1",
"expect-type": "0.17.3",
"jest": "29.7.0",
"jest-extended": "4.0.1",
"neo4j-driver": "^5.9.2",
"prettier": "^3.0.3",
"ts-jest": "29.1.1",
"typedoc": "0.25.1",
"typedoc": "0.25.2",
"typescript": "^5.1.6"
}
}
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