Skip to content
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

Content-Type 'application/graphql' is no longer supported with graphql-dgs-spring-graphql-starter? #2016

Open
martinvisser opened this issue Sep 25, 2024 · 2 comments

Comments

@martinvisser
Copy link

Before I qualify this as a potential bug I just wanted to ask if application/graphql should still be supported as media type after switching from graphql-dgs-spring-boot-starter to graphql-dgs-spring-graphql-starter?
This used to be a valid media type as used in DgsRestController, but after switching to the new starter this controller is no longer used. Spring supports application/json and application/graphql-response+json, and deprecated support for application/graphql+json, but I don't see support for application/graphql.

@martinvisser martinvisser changed the title Content-Type 'application/graphql' is no longer supported? Content-Type 'application/graphql' is no longer supported with graphql-dgs-spring-graphql-starter? Sep 25, 2024
@martinvisser
Copy link
Author

Vice versa, it seems that application/graphql-response+json is not supported in DgsRestController.

@paulbakker
Copy link
Collaborator

I ran into this last week as well and reported it (over chat) to the Spring GraphQL maintainers. They'll have a look at it.
It should be supported, but seems to have an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants