-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for application/graphql content type #108
Comments
The graphQL over HTTP is still being worked on and I think we're keeping things the way they are for now until progress is made (see #11 (comment)). As for the content-type we're more likely to choose |
After discussing this further, the spec draft now requires this and keeps application/json as a fallback for compatibility. We should make sure the server supports both and uses the one that's requested, while the client will use |
As seen in spring-projects/spring-graphql#108, the GraphQL HTTP spec now requires the "application/graphql+json" media type and accepts "application/json" for backwards compatibility. This commit updates the `RouterFunction` definition for the GraphQL HTTP endpoints so that both types are accepted. Closes gh-30407
Current spring boot graphql does not seem to support application/graphql content type with query text as body as specified here ( https://graphql.org/learn/serving-over-http ).
quote from the above specification:
From GraphQlWebFluxAutoConfiguration.java:
The text was updated successfully, but these errors were encountered: