Scott Moss
Initialized
The "Cache Update Exercise" Lesson is part of the full, Client-Side GraphQL in React course featured in this preview video. Here's what you'd learn in this lesson:
Students are instructed to use a mutation to update the cache.
[00:00:00]
>> Scott Moss: Now, what you were tasked to do is to get to the point where once we create a new pet, it automatically shows up in our new pets list without us having to refresh the page using the update function method on the use mutation. So I think as a guide I can leave this up, and as a guide here, because like I said,it can get pretty complicated.
[00:00:24]
There's a lot you can do here, and this is not the only way you can do it, there's other ways, this is the recommended way, and go from there.