Open Fruchtgummi opened 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) }
@Fruchtgummi you are right, I also have Patch() function. I will include Update it in next version! thanks
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) }