Gomah / nuxt-graphql-request

Easy Minimal GraphQL client integration with Nuxt.js.
https://nuxt-graphql-request.vercel.app
MIT License
196 stars 16 forks source link

Persisted query or compression (query exceeding 8192 bytes) #39

Closed jcjp closed 1 year ago

jcjp commented 3 years ago

How would we implemented persisted query on your library or type of compression? As we are currently experience GraphQL exceeded query limit of 8kb. We already use another library to minify our GraphQL queries but it seems to be not a long term solution, and after a few days we hit the error again.

Here is the error: Query cannot be executed. The maximum allowed size for a query is 8192 bytes but it was 8604 bytes

Gomah commented 1 year ago

Probably more related to graphql-request than nuxt-graphql-request, have a look at https://github.com/jasonkuhrt/graphql-request/issues/269 – they have some workaround