Skip to content

Commit 8243a42

Browse files
committed
Updated README
1 parent 9411f42 commit 8243a42

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ Example Usage
2828
driver = GraphDatabase.driver("bolt://localhost")
2929
session = driver.session()
3030
session.run("CREATE (a:Person {name:'Bob'})")
31-
for name, in session.run("MATCH (a:Person) RETURN a.name AS name").records():
32-
print(name)
31+
cursor = session.run("MATCH (a:Person) RETURN a.name AS name")
32+
while cursor.next()
33+
print(cursor["name"])
34+
cursor.close()
3335
session.close()
3436
3537

0 commit comments

Comments
 (0)