Repository navigation
Support hideSuggestions when building and extending schemas - #5002
Open
Rajatendu1 wants to merge 1 commit into
Open
Rajatendu1 wants to merge 1 commit into
Rajatendu1 wants to merge 1 commit into
Conversation
|
@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. |
|
|
This branch has not been deployed
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.
Fixes #5001.
Add the existing validation option
hideSuggestionstobuildSchema,buildASTSchemaandextendSchema. Pass it through SDL validation instead of always usingfalseinSDLValidationContext. 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.