[modern] Persisted GraphQL Queries in Modern?
Open
wontfix
- Dominant language
- Rust
- Stars
- 19k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
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:
1. Create ID's
2. Send those ID's to the GraphQL server as a GET/POST: ex `GET /graphql?query_id=eyBuaWNl123` or `POST /graphql?mutation_id=abcdefgh321`
3. Get a response back equal to what you would normally get from sending in a GraphQL query string.
What would the pseudo code look like for this?
Related:
`RFC: GraphQL Persisted Documents`
https://github.com/graphql/express-graphql/pull/109
`persistgraphql`
https://github.com/apollographql/persistgraphql
Contributor guide
Assessment
This issue has not been assessed yet.