You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Introduces a brand new reactive API (built on top of RxJS) available with 4.0 version server, which includes reactive protocol improvements.
16
14
- Session instances can now be acquired against a specific database against a multi-database server, which is available with 4.0 version server.
15
+
- A new `driver.verifyConnectivity()` method is introduced for connectivity verification purposes.
17
16
18
17
## Breaking Changes
19
18
20
19
- Driver API is moved from `neo4j.v1` to `neo4j` namespace.
21
-
-`driver#session()` method now makes use of object destructuring rather than positional arguments.
20
+
-`driver#session()` method now makes use of object destructuring rather than positional arguments (see [Acquiring a Session](#acquiring-a-session) for examples).
22
21
-`session#close()` now returns a `Promise` and no more accepts a callback function argument.
23
-
-`driver.onError`callback is removed and errors should be monitored on related code paths (i.e. through `Promise#catch`, etc.).
22
+
-`driver.onError`and `driver.onCompleted` callbacks are completely removed. Errors should be monitored on related code paths (i.e. through `Promise#catch`, etc.).
24
23
-`bolt+routing` scheme is now renamed to `neo4j`. `neo4j` scheme is designed to work work with all possible 4.0 server deployments, but `bolt` scheme is still available for explicit single instance connections.
25
24
26
25
## Including the Driver
@@ -99,7 +98,7 @@ driver.close()
99
98
// Create a driver instance, for the user neo4j with password neo4j.
100
99
// It should be enough to have a single driver per database per application.
101
100
var driver =neo4j.driver(
102
-
'bolt://localhost',
101
+
'neo4j://localhost',
103
102
neo4j.auth.basic('neo4j', 'neo4j')
104
103
)
105
104
@@ -249,7 +248,7 @@ rxSession
249
248
// retries on network fluctuations and transient errors. Maximum retry time is
250
249
// configured on the driver level and is 30 seconds by default:
251
250
// Applies both to standard and reactive sessions.
0 commit comments