pyArango icon indicating copy to clipboard operation
pyArango copied to clipboard

Modified flag not set when updating a field of an edge

Open garrettjohnston opened this issue 7 years ago • 1 comments
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!

garrettjohnston avatar Mar 24 '18 01:03 garrettjohnston

Addressed by: https://github.com/ArangoDB-Community/pyArango/pull/147

dothebart avatar May 27 '19 13:05 dothebart