5.5.0
The main feature of this release is a new experimental API that offers a convenient query execution option within a managed transaction with automatic retries on errors eligible for retrying.
Sample usage:
var eagerResult = driver.queryTask("CREATE (n{field: $value}) RETURN n")
.withParameters(Map.of("value", "5"))
.execute();
In addition, it is also possible to provide a java.util.stream.Collector
implementation to collect Record
s to a desired final value:
var result = driver.queryTask("UNWIND range(0, 5) as N RETURN N")
.execute(Collectors.mapping(record -> record.get("N").asLong(), Collectors.toList()));
See the QueryTask
documentation for more details.
If you would like to share your feedback on this new API, please see the following discussion.
⭐ New Features
👏 Improvements
- Stop printing stacktrace in GraphDatabaseTest #1364
🔧 Dependency Management
- Update dependencies #1368