ArangoDB-Community / pyArango

Python Driver for ArangoDB with built-in validation
https://pyarango.readthedocs.io/en/latest/
Apache License 2.0
238 stars 90 forks source link

Modified flag not set when updating a field of an edge #101

Open garrettjohnston opened 6 years ago

garrettjohnston commented 6 years ago

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!
dothebart commented 5 years ago

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