stackshareio/graphql-cache

Invalidating cached fields

Amnesthesia opened this issue · 1 comments

Is there any way to invalidate cached fields? It would be great if, during a mutation, you could also invalidate fields that have been cached

It uses standard cache invalidation techniques utilized by Rails as you can see here. If you wanted, you could also call GraphQL::Cache.delete, which would just forward to this.