This repository was archived by the owner on Oct 25, 2021. It is now read-only.
Add support for application/graphql content type and post query params #4
Closed
Description
As stated in https://graphql.org/learn/serving-over-http/ besides the 'normal' GET
and POST
requests the following is recommended:
- If the "query" query string parameter is present (as in the GET example above), it should be parsed and handled in the same way as the HTTP GET case.
- If the "application/graphql" Content-Type header is present, treat the HTTP POST body contents as the GraphQL query string.
If interested I can create a PR for this. Let me know.
Note: in the Micronaut integration lib we are doing the same: https://github.com/micronaut-projects/micronaut-graphql/blob/master/graphql/src/main/java/io/micronaut/graphql/GraphQLController.java#L116-L178
Metadata
Metadata
Assignees
Labels
No labels