Skip to content

Can I use the @CacheControl for the whole Resolver instead of each field? #6

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

Open
shokhboz-abdullaev opened this issue Oct 11, 2022 · 1 comment

Comments

@shokhboz-abdullaev
Copy link

No description provided.

@cerpinn
Copy link
Contributor

cerpinn commented Oct 13, 2022

I think this would be helpful: https://www.apollographql.com/docs/apollo-server/performance/caching/#in-your-resolvers-dynamic

This library doesn't do much except for giving you a nice way for applying the cache-control directive. So if it's doable using Apollo, it'll probably work.

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