diegogub / aranGO

Golang driver for ArangoDB
Apache License 2.0
125 stars 31 forks source link

Replace is not Update #46

Open Fruchtgummi opened 7 years ago

Fruchtgummi commented 7 years ago

I miss Update-Function! Replace must have all the data, update can also single value and does not consider the other values. With several objects in a collection is unproductive. With all due respect!

// update document d1.Age = 23 err =s.DB("test").Col("docs1").**Replace**(d1.Key,d1) if err != nil { panic(err) }

diegogub commented 7 years ago

@Fruchtgummi you are right, I also have Patch() function. I will include Update it in next version! thanks