Skip to content

Commit 6b9ffdf

Browse files
authored
Merge pull request #472 from neo4j/changeset-release/main
Release new version - changesets
2 parents 411ad08 + 0ad355e commit 6b9ffdf

File tree

4 files changed

+38
-38
lines changed

4 files changed

+38
-38
lines changed

.changeset/hip-kings-behave.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.changeset/twenty-falcons-help.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# @neo4j/cypher-builder
22

3+
## 2.1.0
4+
5+
### Minor Changes
6+
7+
- [#471](https://github.com/neo4j/cypher-builder/pull/471) [`1c671f1`](https://github.com/neo4j/cypher-builder/commit/1c671f19f11e8c4b5cf5bb9b182dfbebcc7a647a) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for dynamic labels by passing an expression to `node.label`:
8+
9+
```javascript
10+
new Cypher.Match(new Cypher.Pattern(movie)).set(movie.label(Cypher.labels(anotherNode)));
11+
```
12+
13+
```cypher
14+
MATCH (this0)
15+
SET
16+
this0:$(labels(this1))
17+
```
18+
19+
### Patch Changes
20+
21+
- [#476](https://github.com/neo4j/cypher-builder/pull/476) [`79e1e87`](https://github.com/neo4j/cypher-builder/commit/79e1e8732b9a37d9143147b55ebb7219095ebc5a) Thanks [@angrykoala](https://github.com/angrykoala)! - Escapes variables using the following reserved words (case insensitive):
22+
23+
- `where`
24+
- `is`
25+
- `contains`
26+
- `in`
27+
28+
For example:
29+
30+
```js
31+
new Cypher.NamedVariable("Where").property("title");
32+
```
33+
34+
Generates the following Cypher
35+
36+
```cypher
37+
`Where`.title
38+
```
39+
340
## 2.0.2
441

542
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@neo4j/cypher-builder",
3-
"version": "2.0.2",
3+
"version": "2.1.0",
44
"description": "A programmatic API for building Cypher queries for Neo4j",
55
"exports": "./dist/index.js",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)