Skip to content

Commit dbfafe1

Browse files
committed
More readme
1 parent 3ce3234 commit dbfafe1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
# Neo4j Bolt Driver for JavaScript
22

33
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.
45

56

67
## Example
78

89
```javascript
10+
// Create a Session object to contain all Cypher activity.
911
var session = new Session();
1012

1113
var statement = "MERGE (a:Person {name:'Alice'}) " +
1214
"MERGE (a)-[:KNOWS]->(b:Person {name:'Bob'}) " +
1315
"RETURN id(a), id(b)",
1416
parameters = {};
1517

18+
// Run a Cypher statement within an implicit transaction
1619
session.run(statement, parameters,
1720

1821
// Called on receipt of each RECORD

0 commit comments

Comments
 (0)