From cc1c0e62d835d09b4dabb211d289593cf785b9de Mon Sep 17 00:00:00 2001 From: stevenpollack Date: Thu, 5 May 2016 13:34:27 +0200 Subject: [PATCH] update README to demonstrate basic_auth usage * example didn't work without explicitly setting up authentication. --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")