Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace is not Update #46

Open
Fruchtgummi opened this issue May 4, 2017 · 1 comment
Open

Replace is not Update #46

Fruchtgummi opened this issue May 4, 2017 · 1 comment

Comments

@Fruchtgummi
Copy link

Fruchtgummi commented May 4, 2017

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
Copy link
Owner

diegogub commented May 23, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants