-
-
Notifications
You must be signed in to change notification settings - Fork 63
Description
Is your feature request related to a problem? Please describe.
We've been ratifying persisted operations in the GraphQL over http specification in graphql/graphql-over-http#305 and graphql/graphql-over-http#264.
Describe the solution you'd like
This approach seems a bit on the iffy side to detect but basically when we see variables
we could look at the URL which should look like <hash>/<operationName>
for GET and for POST the variables
and operationName
are present in the normal body.
Describe alternatives you've considered
A better way could be to judge GraphQL requests based on the content-type/accept header as these have been ratified in the specification. We must specify the Accept
header with value application/graphql-response+json
in the request https://graphql.github.io/graphql-over-http/draft/#sec-Accept
Additional context
Maybe we need a better way to discern these requests as persisted operations