@neo4j/cypher-builder
Version:
A programmatic API for building Cypher queries for Neo4j
26 lines (25 loc) • 767 B
JavaScript
;
/*
* Copyright (c) "Neo4j"
* Neo4j Sweden AB [http://neo4j.com]
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.nodes = nodes;
exports.relationships = relationships;
const CypherFunctions_1 = require("./CypherFunctions");
/**
* @see {@link https://neo4j.com/docs/cypher-cheat-sheet/current/#_path_functions | Cypher Documentation}
* @group Functions
* @category Path
*/
function nodes(path) {
return new CypherFunctions_1.CypherFunction("nodes", [path]);
}
/**
* @see {@link https://neo4j.com/docs/cypher-cheat-sheet/current/#_path_functions | Cypher Documentation}
* @group Functions
* @category Path
*/
function relationships(path) {
return new CypherFunctions_1.CypherFunction("relationships", [path]);
}