UNPKG

@neo4j/cypher-builder

Version:

A programmatic API for building Cypher queries for Neo4j

25 lines (24 loc) 720 B
"use strict"; /* * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] */ Object.defineProperty(exports, "__esModule", { value: true }); exports.RemoveClause = void 0; const CypherASTNode_1 = require("../../CypherASTNode"); class RemoveClause extends CypherASTNode_1.CypherASTNode { removeInput; constructor(parent, removeInput) { super(parent); this.removeInput = removeInput; } addParams(...params) { this.removeInput.push(...params); } /** @internal */ getCypher(env) { const propertiesToDelete = this.removeInput.map((e) => e.getCypher(env)); return `REMOVE ${propertiesToDelete.join(", ")}`; } } exports.RemoveClause = RemoveClause;