Spencer
01/09/2023, 8:19 PMAccount:12345.users()
Account:12345.users({search: "Bob"})
Account:12345.users({search: "Bob Smith"})
The problem is that we want to update the cache for all the lists after the mutation succeeded. I have thought about updating the cache manually with writeOperation
but we would run into not knowing every single search query text, or having to keep a list of every time a query was made with the search text. The same would apply trying to use refetch queries in the mutation collect, or even just deleting the cache key from the store with apollo.apolloStore.remove(CacheKey(key))
.mbonnin
01/09/2023, 9:23 PMmbonnin
01/09/2023, 9:25 PMmbonnin
01/09/2023, 9:26 PMusers()
mbonnin
01/09/2023, 9:42 PMSpencer
01/09/2023, 10:20 PM