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.9.0 to 1.10.0

9

dist/procedures/Yield.d.ts
import type { CypherEnvironment } from "../Environment";
import { Clause } from "../clauses/Clause";
import { WithCreate } from "../clauses/mixins/clauses/WithCreate";
import { WithMatch } from "../clauses/mixins/clauses/WithMatch";
import { WithMerge } from "../clauses/mixins/clauses/WithMerge";
import { WithReturn } from "../clauses/mixins/clauses/WithReturn";
import { WithUnwind } from "../clauses/mixins/clauses/WithUnwind";
import { WithWith } from "../clauses/mixins/clauses/WithWith";
import { WithDelete } from "../clauses/mixins/sub-clauses/WithDelete";
import { WithRemove } from "../clauses/mixins/sub-clauses/WithRemove";
import { WithSet } from "../clauses/mixins/sub-clauses/WithSet";
import { WithWhere } from "../clauses/mixins/sub-clauses/WithWhere";

@@ -10,3 +17,3 @@ import { Projection } from "../clauses/sub-clauses/Projection";

export type YieldProjectionColumn<T extends string> = T | [T, Variable | Literal | string];
export interface Yield extends WithReturn, WithWhere, WithWith {
export interface Yield extends WithReturn, WithWhere, WithWith, WithMatch, WithUnwind, WithDelete, WithMerge, WithCreate, WithRemove, WithSet {
}

@@ -13,0 +20,0 @@ /** Yield statement after a Procedure CALL

@@ -29,4 +29,11 @@ "use strict";

const Clause_1 = require("../clauses/Clause");
const WithCreate_1 = require("../clauses/mixins/clauses/WithCreate");
const WithMatch_1 = require("../clauses/mixins/clauses/WithMatch");
const WithMerge_1 = require("../clauses/mixins/clauses/WithMerge");
const WithReturn_1 = require("../clauses/mixins/clauses/WithReturn");
const WithUnwind_1 = require("../clauses/mixins/clauses/WithUnwind");
const WithWith_1 = require("../clauses/mixins/clauses/WithWith");
const WithDelete_1 = require("../clauses/mixins/sub-clauses/WithDelete");
const WithRemove_1 = require("../clauses/mixins/sub-clauses/WithRemove");
const WithSet_1 = require("../clauses/mixins/sub-clauses/WithSet");
const WithWhere_1 = require("../clauses/mixins/sub-clauses/WithWhere");

@@ -55,2 +62,5 @@ const Projection_1 = require("../clauses/sub-clauses/Projection");

const yieldProjectionStr = this.projection.getCypher(env);
const deleteCypher = (0, compile_cypher_if_exists_1.compileCypherIfExists)(this.deleteClause, env, { prefix: "\n" });
const removeCypher = (0, compile_cypher_if_exists_1.compileCypherIfExists)(this.removeClause, env, { prefix: "\n" });
const setCypher = (0, compile_cypher_if_exists_1.compileCypherIfExists)(this.setSubClause, env, { prefix: "\n" });
const whereStr = (0, compile_cypher_if_exists_1.compileCypherIfExists)(this.whereSubClause, env, {

@@ -60,3 +70,3 @@ prefix: "\n",

const nextClause = this.compileNextClause(env);
return `YIELD ${yieldProjectionStr}${whereStr}${nextClause}`;
return `YIELD ${yieldProjectionStr}${whereStr}${setCypher}${removeCypher}${deleteCypher}${nextClause}`;
}

@@ -66,3 +76,3 @@ };

exports.Yield = Yield = __decorate([
(0, mixin_1.mixin)(WithReturn_1.WithReturn, WithWhere_1.WithWhere, WithWith_1.WithWith)
(0, mixin_1.mixin)(WithReturn_1.WithReturn, WithWhere_1.WithWhere, WithWith_1.WithWith, WithMatch_1.WithMatch, WithUnwind_1.WithUnwind, WithDelete_1.WithDelete, WithMerge_1.WithMerge, WithCreate_1.WithCreate, WithRemove_1.WithRemove, WithSet_1.WithSet)
], Yield);

@@ -69,0 +79,0 @@ class YieldProjection extends Projection_1.Projection {

2

package.json
{
"name": "@neo4j/cypher-builder",
"version": "1.9.0",
"version": "1.10.0",
"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