UNPKG

@neo4j/cypher-builder

Version:

A programmatic API for building Cypher queries for Neo4j

16 lines (15 loc) 488 B
"use strict"; /* * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] */ Object.defineProperty(exports, "__esModule", { value: true }); exports.addLabelToken = addLabelToken; /** Generates a string with all the labels. For example `:Movie&Film` */ function addLabelToken(...labels) { const firstLabel = labels.shift(); if (!firstLabel) return ""; const extraLabels = labels.map((label) => `&${label}`).join(""); return `:${firstLabel}${extraLabels}`; }