pyArango
pyArango copied to clipboard
Modified flag not set when updating a field of an edge
trafficstars
When modifying an edge, after saving it with edgelinks(...), the modified flag never gets set and thus the next save() command doesn't actually push any changes to the DB. Sample code below:
_from = people.fetchDocument('222222')
_to = people.fetchDocument('333333')
edge = rad.createEdge()
edge.links(_from, _to)
edge['start_date'] = "2018-03-23T23:27:40.029Z"
edge['end_date'] = "2018-04-13T00:00:00.000Z"
edge.save() # Doesn't save!
Addressed by: https://github.com/ArangoDB-Community/pyArango/pull/147