feat(graphql-yoga): add support for experimental error coordinate#4288
Merged
EmrysMyrddin merged 12 commits intomainfrom Nov 28, 2025
Merged
feat(graphql-yoga): add support for experimental error coordinate#4288EmrysMyrddin merged 12 commits intomainfrom
EmrysMyrddin merged 12 commits intomainfrom
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
89d3ba3 to
947292d
Compare
Contributor
Apollo Federation Subgraph Compatibility Results
Learn more: |
Contributor
💻 Website PreviewThe latest changes are available as preview in: https://pr-4288.graphql-yoga.pages.dev |
Contributor
✅ Benchmark Results |
Contributor
🚀 Snapshot Release (
|
| Package | Version | Info |
|---|---|---|
@graphql-yoga/apollo-link |
5.2.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/urql-exchange |
5.2.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
graphql-yoga |
5.17.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/nestjs |
3.18.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/nestjs-federation |
3.18.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-apollo-inline-trace |
3.17.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/apollo-managed-federation |
0.16.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-apollo-usage-report |
0.12.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-apq |
3.17.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-csrf-prevention |
3.17.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-defer-stream |
3.17.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-disable-introspection |
2.18.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-graphql-sse |
3.17.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-jwt |
3.11.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-persisted-operations |
3.17.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-prometheus |
6.12.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-response-cache |
3.19.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/plugin-sofa |
3.17.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/render-apollo-sandbox |
0.2.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
@graphql-yoga/render-graphiql |
5.17.0-alpha-20251128101640-816e18742b5d7b260eea8ad3b14ab2d69cc99790 |
npm ↗︎ unpkg ↗︎ |
n1ru4l
reviewed
Nov 14, 2025
n1ru4l
reviewed
Nov 14, 2025
ardatan
reviewed
Nov 14, 2025
ardatan
reviewed
Nov 14, 2025
ba5a7ec to
f407246
Compare
n1ru4l
approved these changes
Nov 26, 2025
Collaborator
n1ru4l
left a comment
There was a problem hiding this comment.
Looks good with me, let's ship it!
feat(graphql-yoga): add support for experimental error coordinate
f407246 to
6842aaa
Compare
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.
Description
This PR add optional experimental support of the
coordinateerror attribute proposal (graphql/graphql-spec#1200).This allows us to more easily identify the resolver which is the source of error than with the
pathwhich can be difficult to walk, or even lead to unsolvable ambiguities.Related to GW-501
Usage
Since this is experimental, it has to be explicitly enabled by adding the appropriate plugin to the
Yoga instance:
Once enabled, located errors will gain the
coordinateattribute:Security concerns
Adding a schema coordinate to errors exposes information about the schema, which can be an attack
vector if you rely on the fact your schema is private and secret.
This is why the
coordinateattribute is not serialized by default, and will not be exposed toclients.
If you want to send this information to client, override either each
toJSONerror's method, or adda dedicated extension.