JavaScript driver
This section presents the breaking changes between the Neo4j 1.7 JavaScript driver and 4.x JavaScript driver.
The latest version of the JavaScript driver for Neo4j can be found on the JavaScript driver’s official page.
-
session#close()
anddriver#close()
now returnPromises
, and no longer accept callback function arguments. -
driver.onError
anddriver.onCompleted
callbacks have been removed. Errors should be monitored on related code paths (e.g. throughPromise#catch
, etc.).
See full changelog: https://github.com/neo4j/neo4j-javascript-driver/wiki/4.0-changelog.
Example 1. Example of changes between the 1.7 JavaScript driver and the 4.0 JavaScript driver
Example code for the 4.0 JavaScript driver | Example code for the 1.7 JavaScript driver |
---|---|
|
|