Skip to content

Support hideSuggestions when building and extending schemas - #5002

Open
Rajatendu1 wants to merge 1 commit into
graphql:17.x.xfrom
Rajatendu1:fix/schema-hide-suggestions
Open

Rajatendu1 wants to merge 1 commit into
graphql:17.x.xfrom
Rajatendu1:fix/schema-hide-suggestions

Conversation

@Rajatendu1

Copy link
Copy Markdown

Fixes #5001.

Add the existing validation option hideSuggestions to buildSchema, buildASTSchema and extendSchema. Pass it through SDL validation instead of always using false in SDLValidationContext. Unknown-type and directive-argument errors remain errors, but callers can omit their suggestion suffixes. Omitted or false options keep the current messages.

Add twelve schema-construction regression/control cases. Six fail on unchanged 17.x.x; all 3,171 tests pass after the fix on Node 22.23.4 and 24.22.2, with 100% line, branch and function coverage. TypeScript, ESLint, formatting, spelling, 361 executable documentation examples, npm builds and the Deno publication dry-run pass.

Fork CI passed all 24 validation jobs on commit e33940378bf1c2b18cf1d54c757a4f92ebd2298b, including all eight integration shards, tests on Node 22/24/26/27, Deno 2.4 through 2.8 and latest, lint, fuzzing, lockfile checks and npm/Deno builds. CodeQL also passed. Deployment jobs were skipped on the fix branch. These are fork results, not upstream CI results.

AI assistance was used for investigation, implementation and test execution. The issue report is credited to @u873838.

@vercel

vercel Bot commented Nov 13, 2026

Copy link
Copy Markdown

@Rajatendu1 is attempting to deploy a commit to the The GraphQL Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: Rajatendu1 / name: Rajatendu Dey (e339403)

This branch has not been deployed

No deployments
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.

buildSchema does not allow hiding suggestions

1 participant