Skip to content

Commit cc1c0e6

Browse files
committed
update README to demonstrate basic_auth usage
* example didn't work without explicitly setting up authentication.
1 parent 5121321 commit cc1c0e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Example Usage
2424

2525
.. code:: python
2626
27-
from neo4j.v1 import GraphDatabase
28-
driver = GraphDatabase.driver("bolt://localhost")
27+
from neo4j.v1 import GraphDatabase, basic_auth
28+
driver = GraphDatabase.driver("bolt://localhost", auth=basic_auth("neo4j", "neo4j"))
2929
session = driver.session()
3030
session.run("CREATE (a:Person {name:'Bob'})")
3131
result = session.run("MATCH (a:Person) RETURN a.name AS name")

0 commit comments

Comments
 (0)