UNPKG

@neo4j/cypher-builder

Version:

A programmatic API for building Cypher queries for Neo4j

34 lines (33 loc) 1.15 kB
"use strict"; /* * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] */ Object.defineProperty(exports, "__esModule", { value: true }); exports.point = point; const CypherFunctions_1 = require("./CypherFunctions"); /** * @see {@link https://neo4j.com/docs/cypher-manual/current/functions/spatial/ | Cypher Documentation} * @group Functions * @category Spatial */ function point(variable) { return new CypherFunctions_1.CypherFunction("point", [variable]); } /** * @see {@link https://neo4j.com/docs/cypher-manual/current/functions/spatial/#functions-distance | Cypher Documentation} * @group Functions * @category Spatial * @example Generated Cypher: `point.distance(point1, point2)` */ point.distance = (lexpr, rexpr) => { return new CypherFunctions_1.CypherFunction("point.distance", [lexpr, rexpr]); }; /** * @see {@link https://neo4j.com/docs/cypher-manual/current/functions/spatial/#functions-withinBBox | Cypher Documentation} * @group Functions * @category Spatial */ point.withinBBox = (point, lexpr, rexpr) => { return new CypherFunctions_1.CypherFunction("point.withinBBox", [point, lexpr, rexpr]); };