Apollo Client and a GraphQL Mutation
Explore how to use Apollo Client alone to define and send a GraphQL mutation that stars a GitHub repository. Learn the mutation structure, identifier usage, and handling of mutation results via the console, preparing for integration with React in future lessons.
We'll cover the following...
We'll cover the following...
Previously, you learned how to query data from GitHub’s GraphQL API using the Apollo Client. Once the client is set up with a configuration, you can use its query() method to send a GraphQL query with optional variables. As you have learned, reading data with GraphQL is not everything, because there are mutations for writing data as well.
In this lesson, you are going to define a ...