apollo-response-cache
apollo-response-cache copied to clipboard
Usage
Hi!
I have a long running background process which I use to trigger subscriptions. This is also is the source of queries. If I use an output cache, the results could potentialy become out of date. Is there a none resolver directive way of using project to invalid cache entries?
@RichardWright invalidateFQC
may fit for you though it's undocumented.
import { invalidateFQC } from '@matters/apollo-response-cache'
invalidateFQC({
node: { type: NODE_TYPE, id: NODE_ID },
redis: REDIS_INSTANCE,
})