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

Support query caching #171

Open
yaaraze opened this issue Oct 7, 2021 · 1 comment
Open

Support query caching #171

yaaraze opened this issue Oct 7, 2021 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@yaaraze
Copy link

yaaraze commented Oct 7, 2021

Like apollo library

@barbieri
Copy link
Member

it's a great request, but unfortunately this would be (if properly implemented) a huge task I don't have time to implement (PR is welcome).

The issue is how to do it in a generic and extensible way. I'm a user of Apollo/JS on many projects, you have a machinery to specify cache manually, direct cache operations (read/write), keys (ie: __typename + id or something else), connections (for pagination)...

OTOH to do simplistic cases is not hard, but it can't go in a generic library otherwise we start to get bug reports it doesn't cope with more complex uses... so I recommend you to do it yourself if it's simple.

@barbieri barbieri added enhancement New feature or request help wanted Extra attention is needed labels Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants