Skip to content

Fix mistake in GraphQLError guidance - #4706

Merged
yaacovCR merged 1 commit into
16.x.xfrom
v17-error-nodes
May 3, 2026
Merged

yaacovCR merged 1 commit into
16.x.xfrom
v17-error-nodes

Conversation

@benjie

@benjie benjie commented May 1, 2026

Copy link
Copy Markdown
Member

The guidance currently suggests that the second argument to GraphQLError was source but it's actually nodes; here's the type definition for the second argument onward:

type BackwardsCompatibleArgs =
| [options?: GraphQLErrorOptions]
| [
nodes?: GraphQLErrorOptions['nodes'],
source?: GraphQLErrorOptions['source'],
positions?: GraphQLErrorOptions['positions'],
path?: GraphQLErrorOptions['path'],
originalError?: GraphQLErrorOptions['originalError'],
extensions?: GraphQLErrorOptions['extensions'],
];

@vercel

vercel Bot commented May 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
graphql-js Ready Ready Preview, Comment May 1, 2026 11:43am

Request Review

@yaacovCR
yaacovCR merged commit 85700ed into 16.x.x May 3, 2026
37 checks passed
@yaacovCR
yaacovCR deleted the v17-error-nodes branch May 3, 2026 13:56
yaacovCR pushed a commit that referenced this pull request Jun 3, 2026
The guidance currently notes that the second argument to `GraphQLError` was `source` but it actually was `nodes`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants