4 ms·
GraphQL only solves half the problem, how do you update resources with GraphQL?
by davewritescode 9y ago
GraphQL only solves half the problem, how do you update resources with GraphQL?
- andrewingram 9y agoBy using mutations.
- 18nleung 9y agoGraphQL supports both queries to access data and _mutations_ to change data: mutation { createUser(u: "user", p: "pass") { u, p } }
- davewritescode 9y agoThat's actually awesome, thanks for pointing that out!
- t_fatus 9y agoand in addition to mutations (which mutate data stored in the backend) you can use subscriptions to update your local data store once they changed