I'm trying to make a social network and its my first web experience. I'm using Neo4j database and py2neo module. Now I want to find a node from my database and change some of it's properties. I'm using the code below,and i can run it with no errors .but it doesn't change anything in my database and i have no idea why... please help me if you can.
from py2neo import Graph
graph=Graph()
def edit_name(Uname,name):
person=graph.merge_one("Person","username",Uname)
person.cast(fname=name)