Skip to content

Commit dc8ecf7

Browse files
authored
Merge pull request #252 from neo4j/changeset-release/main
Release new version - changesets
2 parents 7dadbc4 + 4d48e79 commit dc8ecf7

File tree

5 files changed

+50
-53
lines changed

5 files changed

+50
-53
lines changed

.changeset/honest-clouds-visit.md

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

.changeset/warm-countries-check.md

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

.changeset/wise-bags-tease.md

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

CHANGELOG.md

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

3+
## 1.8.0
4+
5+
### Minor Changes
6+
7+
- [#253](https://github.com/neo4j/cypher-builder/pull/253) [`da0b3ab`](https://github.com/neo4j/cypher-builder/commit/da0b3abb6be387026b732b91e6f8ed4770322671) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for type filtering on relationships
8+
9+
```js
10+
new Cypher.Match(new Cypher.Pattern().related(new Cypher.Relationship()).to()).where(
11+
relationship.hasType("ACTED_IN")
12+
);
13+
```
14+
15+
```cypher
16+
MATCH(this0)-[this1]->(this2)
17+
WHERE this1:ACTED_IN
18+
```
19+
20+
- [#251](https://github.com/neo4j/cypher-builder/pull/251) [`80e1bca`](https://github.com/neo4j/cypher-builder/commit/80e1bcab017a15683431b1d7bba061ba23eff3d8) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for label expressions on `hasLabel`:
21+
22+
```js
23+
const query = new Cypher.Match(node).where(node.hasLabel(Cypher.labelExpr.or("Movie", "Film")));
24+
```
25+
26+
```cypher
27+
MATCH (this0:Movie)
28+
WHERE this0:(Movie|Film)
29+
```
30+
31+
- [#256](https://github.com/neo4j/cypher-builder/pull/256) [`602c237`](https://github.com/neo4j/cypher-builder/commit/602c237ad471f8d81f076bc376d4d25e6f1a1fcc) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for `ON MATCH SET` after `MERGE`:
32+
33+
```js
34+
const node = new Cypher.Node({
35+
labels: ["MyLabel"],
36+
});
37+
38+
const countProp = node.property("count");
39+
const query = new Cypher.Merge(node)
40+
.onCreateSet([countProp, new Cypher.Literal(1)])
41+
.onMatchSet([countProp, Cypher.plus(countProp, new Cypher.Literal(1))]);
42+
```
43+
44+
```cypher
45+
MERGE (this0:MyLabel)
46+
ON MATCH SET
47+
this0.count = (this0.count + 1)
48+
ON CREATE SET
49+
this0.count = 1
50+
```
51+
352
## 1.7.4
453

554
### 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": "1.7.4",
3+
"version": "1.8.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)