Support errors thrown in the gateway. I.e. during validation - #8383
Open
jdolle wants to merge 4 commits into
Open
Support errors thrown in the gateway. I.e. during validation#8383jdolle wants to merge 4 commits into
jdolle wants to merge 4 commits into
Conversation
Collaborator
🚀 Snapshot Release (
|
| Package | Version | Info |
|---|---|---|
@graphql-hive/apollo |
0.48.6-alpha-20260819180258-65f5f42b0fdf21fce0071773eed72974e6c59e94 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/cli |
0.62.1-alpha-20260819180258-65f5f42b0fdf21fce0071773eed72974e6c59e94 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/core |
0.22.4-alpha-20260819180258-65f5f42b0fdf21fce0071773eed72974e6c59e94 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/envelop |
0.40.11-alpha-20260819180258-65f5f42b0fdf21fce0071773eed72974e6c59e94 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/gateway-plugin-console-sdk |
0.1.5-alpha-20260819180258-65f5f42b0fdf21fce0071773eed72974e6c59e94 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/yoga |
0.49.5-alpha-20260819180258-65f5f42b0fdf21fce0071773eed72974e6c59e94 |
npm ↗︎ unpkg ↗︎ |
Contributor
|
🐋 This PR was built and pushed to the following Docker images: Targets: Platforms: Image Tags: |
jdolle
marked this pull request as ready for review
August 19, 2026 18:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
This adds support for errors thrown during the validation phase in the gateway. Previously, if subgraph requests were being made, then only those requests were used to collect the errors.
Description
Adds a new
gatewayErrorsfield to the payload, which will need documentation updated.The rest of the gateway request is still appended to the
fetchesarray as a single "fetch". So in this case, the errors are stripped from this faked "fetch" and added to the gatewayErrors array. This is to avoid double counting the errors, and to keep the gatewayErrors as a consistent place for, well, errors in the gateway.This also modifies some of the operation building to more closely match the yoga plugin. E.g. using
context.waitUntiland support for persisted documents.Checklist