graphql-cache icon indicating copy to clipboard operation
graphql-cache copied to clipboard

How do I invalidate the cache if my object is changed

Open deepakmahakale opened this issue 5 years ago • 1 comments

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

deepakmahakale avatar Mar 13 '20 07:03 deepakmahakale

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.

macdonaldr93 avatar May 28 '21 23:05 macdonaldr93