We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ce3234 commit dbfafe1Copy full SHA for dbfafe1
README.md
@@ -1,18 +1,21 @@
1
# Neo4j Bolt Driver for JavaScript
2
3
The JavaScript driver for Bolt uses the websocket interface and is currently available for use within a browser context only.
4
+To use the driver, simply include the `neo4j.js` file within a page.
5
6
7
## Example
8
9
```javascript
10
+// Create a Session object to contain all Cypher activity.
11
var session = new Session();
12
13
var statement = "MERGE (a:Person {name:'Alice'}) " +
14
"MERGE (a)-[:KNOWS]->(b:Person {name:'Bob'}) " +
15
"RETURN id(a), id(b)",
16
parameters = {};
17
18
+// Run a Cypher statement within an implicit transaction
19
session.run(statement, parameters,
20
21
// Called on receipt of each RECORD
0 commit comments