Skip to content

Introduce GraphQL-over-HTTP response - #423

Merged
benjie merged 10 commits into
mainfrom
response
Sep 3, 2026
Merged

Introduce GraphQL-over-HTTP response#423
benjie merged 10 commits into
mainfrom
response

Conversation

@martinbonnin

@martinbonnin martinbonnin commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Just like there is GraphQL-over-HTTP request, this PR introduces GraphQL-over-HTTP response.

Using GraphQL response was misleading because the HTTP specification doesn't say anything about response streams and we might end up using a separate media type for this (application/graphql-responses+jsonl, ...)

Instead, this PR introduces a new GraphQL-over-HTTP response that is either an execution result or a request error result, but not a response stream.

Comment thread spec/GraphQLOverHTTP.md Outdated
@benjie

benjie commented Sep 3, 2026

Copy link
Copy Markdown
Member

@martinbonnin as agreed at the GraphQL-over-HTTP working group, I've updated this to lean heavily on the GraphQL spec to define the result shapes, rather than redefining them here. I've also fixed outdated references to terms in the spec that have since been refined - it wasn't just "GraphQL response" that was out of date (as you rightly caught!), but also "field error" has been replaced with "execution error" and the section links were also broken due to capitalization differences. I've moved to linking to the term definitions instead of section headers as I believe these links will be more stable. I've linked to the Sept 2025 main spec release right now, but if we can get a Sept 2026 release ready before this goes out I'll update the reference so they can go out either together or slightly staggered (HTTP following main spec) - that can be done in a follow up to this PR.

Please take a look and let me know what you think.

@martinbonnin

Copy link
Copy Markdown
Contributor Author

@benjie I can't approve my own PR but LGTM!

Comment thread spec/metadata.json
{
"biblio": {
"https://spec.graphql.org/draft/": {
"https://spec.graphql.org/September2025/": {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this meant to be commited? Do we have a release already? 👀

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong year, Martin!

I've linked to the Sept 2025 main spec release right now, but if we can get a Sept 2026 release ready before this goes out I'll update the reference so they can go out either together or slightly staggered (HTTP following main spec) - that can be done in a follow up to this PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😂 What a year, huh?

Sounds good 👍 Thanks!

@benjie
benjie merged commit d746195 into main Sep 3, 2026
6 checks passed
@benjie
benjie deleted the response branch September 3, 2026 13:45
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

Successfully merging this pull request may close these issues.

5 participants