ariadne icon indicating copy to clipboard operation
ariadne copied to clipboard

Support content type "application/graphql"

Open rafalp opened this issue 6 years ago • 2 comments

If the "application/graphql" Content-Type header is present, treat the HTTP POST body contents as the GraphQL query string.

rafalp avatar Mar 26 '19 19:03 rafalp

@rafalp going to try and tackle this in the next few days

beneshed avatar Feb 07 '20 11:02 beneshed

Note to self: check if this is still the case for GraphQL servers in 202X

rafalp avatar Jul 21 '23 10:07 rafalp

Note to self: check if this is still the case for GraphQL servers in 202X

I've did a search for this feature's popularity in the wild and it seems to be a de facto dead part of spec. Only argument I've found for it being available is the ease of typing GraphQL requests in CURL. Arguments against it are JSON being widespread in clients, and missing support for variables as separate payload.

We aren't going to do this, but if somebody creates a pull request that adds it, and this PR passes review, we'll merge it.

rafalp avatar Apr 03 '24 09:04 rafalp