We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
driver.close()
1 parent b6549b6 commit 798ced7Copy full SHA for 798ced7
README.md
@@ -66,6 +66,7 @@ driver.close();
66
```javascript
67
68
// Create a driver instance, for the user neo4j with password neo4j.
69
+// It should be enough to have a single driver per database per application.
70
var driver = neo4j.driver("bolt://localhost", neo4j.auth.basic("neo4j", "neo4j"));
71
72
// Register a callback to know if driver creation was successful:
@@ -148,6 +149,9 @@ if (success) {
148
149
console.log('rolled back');
150
tx.rollback();
151
}
152
+
153
+// Close the driver when application exits
154
+driver.close();
155
```
156
157
Subscriber API allows following combinations of `onNext`, `onCompleted` and `onError` callback invocations:
0 commit comments