-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[modern] Persisted GraphQL Queries in Modern? #2008
Comments
There is an open PR about it already |
Here is how I implement it in Relay and GraphQL, using Relay GraphQL I persist the queries when starting the server: Script to persist queries: |
For a compile time solution, see relay-compiler-plus. The hard work is done for you by this custom compiler at compile time. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Since all GraphQL queries are known at build time, I am wondering if I could use the information given by the files generated by
relay-compiler
to:GET /graphql?query_id=eyBuaWNl123
orPOST /graphql?mutation_id=abcdefgh321
What would the pseudo code look like for this?
Related:
RFC: GraphQL Persisted Documents
graphql/express-graphql#109
persistgraphql
https://github.com/apollographql/persistgraphql
The text was updated successfully, but these errors were encountered: