Skip to content

Conversation

yaacovCR
Copy link

see: graphql#4430

first commit is just to reduce diff with graphql-js/16.x.x i.e. the overall PR diff, while preserving full code coverage

second commit tweaks response to the feedback on that PR (graphql#4430 (comment))

i.e. the behavior when there is an unexpected description preceding an unexpected keyword. The existing behavior on 16.x.x is to surface the error for the description, which occurs first, this tweak preserves that behavior, adding a test.

yaacovCR added 2 commits July 22, 2025 15:33
1. consolidate some logic
2. ensure that the "unexpected description" error for unknown keywords surfaces rather than the "unexpected keyword" error itself, as the description occurs first!
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.

1 participant