Skip to content

Commit c340e47

Browse files
authored
Merge pull request #539 from neo4j/changeset-release/main
Release new version - changesets
2 parents 7614551 + b12689d commit c340e47

File tree

3 files changed

+35
-34
lines changed

3 files changed

+35
-34
lines changed

.changeset/lovely-parents-notice.md

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

CHANGELOG.md

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

3+
## 2.6.0
4+
5+
### Minor Changes
6+
7+
- [#528](https://github.com/neo4j/cypher-builder/pull/528) [`2f8dfa6`](https://github.com/neo4j/cypher-builder/commit/2f8dfa626adf814cce2543792db152521e8d4682) Thanks [@angrykoala](https://github.com/angrykoala)! - Add option `retry` to `Call.inTransactions` configuration to add a `RETRY` statement to `CALL {} IN TRANSACTIONS`.
8+
This option can be a boolean set to true or a number to define the retry seconds:
9+
10+
```js
11+
new Cypher.Call(subquery).inTransactions({
12+
retry: true,
13+
});
14+
```
15+
16+
```cypher
17+
CALL {
18+
// ...
19+
} IN TRANSACTIONS ON ERROR RETRY
20+
```
21+
22+
Using it in conjuntion with `onError` and with a defined seconds of retry:
23+
24+
```js
25+
new Cypher.Call(subquery).inTransactions({
26+
retry: 10,
27+
onError: "break",
28+
});
29+
```
30+
31+
```cypher
32+
CALL {
33+
// ...
34+
} IN TRANSACTIONS ON ERROR RETRY FOR 10 SECONDS THEN BREAK
35+
```
36+
337
## 2.5.2
438

539
### 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.5.2",
3+
"version": "2.6.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)