Closed
Description
Use case
We are using auto-persisted queries. As we run against a CDN with edge caching, we have chosen GET as a query method. However, sometimes the payload can be quite large, exceeding the limit of 2048 bytes that our API gateway has. Requests with such large payloads cannot be processed by our backend.
Describe the solution you'd like
Would it be possible to make the AutoPersistedQueryInterceptor configurable so that it switches over to POST when the GET query becomes too large? What “too large” means exactly should be definable in the ApolloClient.Builder()
, maybe via a parameter of autoPersistedQueries
.