diff --git a/README.rst b/README.rst index 412941e61..18440bb94 100644 --- a/README.rst +++ b/README.rst @@ -24,8 +24,8 @@ Example Usage .. code:: python - from neo4j.v1 import GraphDatabase - driver = GraphDatabase.driver("bolt://localhost") + from neo4j.v1 import GraphDatabase, basic_auth + driver = GraphDatabase.driver("bolt://localhost", auth=basic_auth("neo4j", "neo4j")) session = driver.session() session.run("CREATE (a:Person {name:'Bob'})") result = session.run("MATCH (a:Person) RETURN a.name AS name")