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

Make mutations resolvers that are compatible with optimistic UI #15

Closed
nenadjaja opened this issue Feb 15, 2020 · 1 comment
Closed
Assignees

Comments

@nenadjaja
Copy link
Contributor

Resolvers need to return objects that we can use for Apollo caching in the UI. For example, addProject mutation should return a project object (once it's successful):

return  {
  id: "123",
  name: "One"
  description: "Blah blah"
  ...
}

If it's unsuccessful, it should return an error object that the UI will handle, instead of silently failing.

@nenadjaja nenadjaja changed the title Make mutations resolvers compatible with optimistic UI Make mutations resolvers that are compatible with optimistic UI Feb 17, 2020
@nenadjaja
Copy link
Contributor Author

This is implemented

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

No branches or pull requests

2 participants