graphql-cache
graphql-cache copied to clipboard
How do I invalidate the cache if my object is changed
Is your feature request related to a problem? Please describe.
I am using graphql with graphql-cache.
But now I want to invalidate the cache if my object is changed
Describe the solution you'd like
It will be better if we can just call a method in the after_commit callback and invalidate the cache of related records
Hey! Has anyone been able to look into this? I need something similar. I know after a given mutation has fired to expire the cache but I'm not seeing an API to do that.