1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Update Data using the Apollo Mutation component

    reactReact
    ^16.4.2
    graphqlGraphQL
    ^14.0.2

    In this lesson we will use the Mutation component to invoke a mutation of a GraphQL API. In addition we cover how to update the local cache using refetch queries as well as improving the user experience when dealing with mutations.

    In the end we discuss several gotchas related to Mutations and possible ways on how to tackle them.