Upgrade from older versions
This page contains the list of new features and breaking changes of the driver from version 5.28 to to 6.x. For a full list of changes, see the Driver → Changelog.
The latest driver version of the 6.x series is compatible with Neo4j server both 4.4, 5.x, and 202[56].x, so you can upgrade the driver before you upgrade the server. At the same time, the driver version 5.28 is forward compatible with Neo4j server 202[56].x, so you could also upgrade the server before the driver; however, given that it’s easier to roll back an application upgrade than a server upgrade, it’s recommended to start with the driver.
When upgrading the Neo4j server to a newer version, the Cypher queries in your application may also need updating. See Cypher → Deprecations, additions, and compatibility. |
New features
Value mappingWith the Value Mapping feature, you can declare a Java Record containing the specification of the values your query is expected to return, and ask the driver to use that class to spawn new objects from a query result. |
New type
|
GQL status objects in exceptionsException objects also expose errors as GQL-status objects. The main difference between Neo4j error codes and GQL error codes is that the latter are more granular. For more information, see Error handling. |
Unix sockets supportThe new For more information, see Connecting through Unix sockets. |
Netty native transports supportNetty native transports add features specific to a particular platform, generate less garbage, and generally improve performance when compared to the NIO based transport. For more information, see Performance → Switch to Netty native transports. |
Breaking changes and deprecations
Deprecated features are likely to be removed in the next major version.
Version | Message | Status |
---|---|---|
6.0 |
|
Removed |
6.0 |
Interface |
Removed |
6.0 |
|
Removed |
6.0 |
|
Removed |
6.0 |
|
Removed |
6.0 |
Bookmarks
|
Removed |
6.0 |
The default driver logging implementation has been changed from |
Changed |
5.0 |
|
Deprecated |
5.0 |
|
Deprecated |
6.0 |
Notifications as Neo4j status codes are deprecated in favor of GQL status objects. As a result,
|
Deprecated |
6.0 |
The driver’s logging abstraction is deprecated in favour of
|
Deprecated |