versae / neo4j-rest-client

Object-oriented Python library to interact with Neo4j standalone REST server
http://neo4j-rest-client.rtfd.org
GNU General Public License v3.0
264 stars 73 forks source link

How can I update values of existing properties on a relationship? #129

Closed ahrennsiva closed 8 years ago

ahrennsiva commented 8 years ago

If I'm storing properties on a relationship created using something like:

rel = student_to_store.relationships.create("Attends School At", matching, neo_started_degree_year=2015, neo_ending_degree_year=2019)

How can I update those two properties later on?

versae commented 8 years ago

To update properties you just need to edit the values as in a dictionary.

rel["neo_started_degree_year"] = 2016