Skip to content

Commit 800f444

Browse files
committed
Updated README
1 parent 8d1c417 commit 800f444

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ We build a special browser version of the driver, which supports connecting to N
2727
This will make a global `neo4j` object available, where you can access the `v1` API at `neo4j.v1`:
2828

2929
```javascript
30-
var driver = neo4j.v1.driver("bolt://localhost");
30+
var driver = neo4j.v1.driver("bolt://localhost", neo4j.auth.basic("neo4j", "neo4j"));
3131
```
3232

3333
## Usage examples
3434

3535
```javascript
3636

37-
// Create a driver instance
38-
var driver = neo4j.driver("bolt://localhost");
37+
// Create a driver instance, for the user neo4j with password neo4j.
38+
var driver = neo4j.driver("bolt://localhost", neo4j.auth.basic("neo4j", "neo4j"));
3939

4040
// Create a session to run Cypher statements in.
4141
// Note: Always make sure to close sessions when you are done using them!

0 commit comments

Comments
 (0)