0

i started using the py2neo database system with django.
How can i update a node in the graph database ?

I created a 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 get the node with 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

1 Answers1

2

You can also set individual properties outside a batch as follows:

user["name"] = "Bob"
user["age"] = 77
Nigel Small
  • 4,475
  • 1
  • 17
  • 15