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

Remove FindOne from Update to allow atomic implementations. #148

Open
sharpner opened this issue Aug 2, 2015 · 1 comment
Open

Remove FindOne from Update to allow atomic implementations. #148

sharpner opened this issue Aug 2, 2015 · 1 comment

Comments

@sharpner
Copy link
Member

sharpner commented Aug 2, 2015

Since jsonapi 1.0 we use PATCH to update entities.

We need to refactor the handleUpdate accordingly and keep links and relations in mind, since they can also get updated.

@sharpner sharpner added this to the Release 1.1 milestone Aug 2, 2015
@Linuturk
Copy link

I think I might be impacted by this right now. I have a struct that contains a map[string]string, and the updated map from the client request is being merged with any existing map in the database. This means I can't ever remove items from the map because api2go is merging them before calling my Update() method. Is this behavior consistent with the problem you are reporting? Is there a work around for this?

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