1. 9
    Update the local cache automatically when making mutations
    2m 17s

Update the local cache automatically when making mutations

Share this video with your friends

Send Tweet

Understanding how Apollo normalises objects and how it stores them in the cache is especially helpful when writing our mutations. We'll see how just by making sure we return the ID of the changed entity from a mutation, plus any updated fields, Apollo will automatically make the necessary updates in the cache and re-render any components listening to that specific chunk of data.