Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage #91

Open
RichardWright opened this issue May 6, 2021 · 1 comment
Open

Usage #91

RichardWright opened this issue May 6, 2021 · 1 comment

Comments

@RichardWright
Copy link

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?

@robertu7
Copy link
Contributor

@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,
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants