Apollo Client React Hooks with Drupal GraphQL - useMutation in Client, part 3
Published on 2019-09-07 at 18:45
In the previous article we’ve shown how to get data with useQuery from a Drupal powered GraphQL API. Fetching data is fun, but even more fun is to be able to send data to an API as part of interactivity features that our user might need to enjoy when using our apps. To do so in a more modern way Apollo now provides us with the useMutation()-hook. Let’s see how to make use of it.
Learn more