We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Nice package.
Would be nice with a way to bypass the cache using input arguments from the client
The text was updated successfully, but these errors were encountered:
Hi @simplenotezy , I don't know if you found a way to do it, but it's possible using the responseCachePlugin at the module level:
responseCachePlugin
GraphQLModule.forRoot({ driver: ApolloDriver, autoSchemaFile: true, sortSchema: true, cache: KeyvAdapter(new Keyv(redisConnURI)), plugins: [ ApolloServerPluginCacheControl({ defaultMaxAge: 300 }), responseCachePlugin({ shouldReadFromCache(requestContext) { const cacheControl = requestContext.request.http.headers.get('cache-control'); return !cacheControl || !cacheControl?.includes('no-store'); }, }), })
Reference: https://www.apollographql.com/docs/apollo-server/v3/performance/caching#configuring-reads-and-writes
Sorry, something went wrong.
No branches or pull requests
Nice package.
Would be nice with a way to bypass the cache using input arguments from the client
The text was updated successfully, but these errors were encountered: