-
Notifications
You must be signed in to change notification settings - Fork 203
Closed
Description
the example code in this file...
specifically:-
def create_friend_of(tx, name, friend):
tx.run("CREATE (a:Person)-[:KNOWS]->(f:Person {name: $friend}) "
"WHERE a.name = $name "
"RETURN f.name AS friend", name=name, friend=friend)
is incorrect and breaks because you cannot use create with a Where Clause
should instead match then create..
def create_friend_of(tx, name, friend):
tx.run("Match (a:Person{name:$name}) "
"With a "
"CREATE (a)-[:KNOWS]->(f:Person {name: $friend}) "
"RETURN f.name AS friend", name=name, friend=friend)
Metadata
Metadata
Assignees
Labels
No labels