Hey everybody. I got a question. I have a query th...
# prisma-whats-new
m
Hey everybody. I got a question. I have a query that fetches a list of items from prisma. After that I run a delete mutation that removes an item from that list. When I reload the webpage, I get the same list of items back with the deleted item included. In the playground the same query gives me the list of items without the deleted item. Is there some kind of caching in prisma?
n
What GraphQL client do you use?
m
apollo-client (2.0.4)
n
what you observe is likely Apollo's cache 🙂 you need to remove the item from your Apollo cache after the delete mutation
m
I tested that by making the query network-only so disabling the cache. I still see the request hit the server.
n
What's your
prisma-binding
version?
m
1.5.7
n
There was a bug fix related to caching in
1.5.15
. Could you try upgrading to the latest version,
1.5.16
?
m
Will try it
That fixed it! Thank you very much! It has been a pleasure to be using prisma.
💚 1
n
Awesome! 😄
👍 1