Skip to content

Switch over to POST when APQ GET requests would be too large #6545

Closed
@awb-i4o

Description

@awb-i4o

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions