Skip to content

Persisted queries #843

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
shoooe opened this issue Jan 6, 2021 · 1 comment
Open

Persisted queries #843

shoooe opened this issue Jan 6, 2021 · 1 comment
Labels
enhancement Improvement of existing features or bugfix

Comments

@shoooe
Copy link

shoooe commented Jan 6, 2021

Is your feature request related to a problem? Please describe.
Persisted queries aim at:

  • Improve the performance of a GraphQL server
  • Whitelist specific queries
  • Reduce bandwidth usage

Describe the solution you'd like
Something similar to HotChocolate's persisted queries.

Describe alternatives you've considered
I considered implementing a layer, between the HTTP request and the Juniper engine, that could convert an ID into a GraphQL query stored within the executable.

That would solve the whitelisting problem and bandwidth usage but wouldn't improve the performance of the GraphQL server compared to just passing the query directly.

For that Juniper would have to expose the parsing and executing as two different function calls. That way I could parse the whitelisted queries at server startup and just reuse those parsed queries time and time again.

Additional context
Relay describes persisted queries.
Apollo also seems to have support for those.

@shoooe shoooe added the enhancement Improvement of existing features or bugfix label Jan 6, 2021
@LegNeato
Copy link
Member

LegNeato commented Jan 7, 2021

We have an existing issue to split up the stages here: #726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing features or bugfix
Projects
None yet
Development

No branches or pull requests

2 participants