database - py2neo update node in graph -


i started using py2neo database system django.
how can update node in graph database ?

i created node:

   user = graph_db.get_or_create_indexed_node("users_email_single", email, email,         {"user_id":user_id,           "basic_name_firstname": firstname,          "basic_name_lastname": lastname,          "contactprivate_email": email,         }) 

i node following code:

graph_db = neo4j.graphdatabaseservice("http://localhost:7474/db/data/") user = graph_db.get_indexed_node("users_user_id", user_id, user_id) 

regards

you can set individual properties outside batch follows:

user["name"] = "bob" user["age"] = 77 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -