Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support more GraphQL versions #3

Merged
merged 14 commits into from
Mar 19, 2025
Merged

Support more GraphQL versions #3

merged 14 commits into from
Mar 19, 2025

Conversation

benjie
Copy link
Member

@benjie benjie commented Mar 19, 2025

This PR overhauls the project so that it can support more versions of GraphQL. It tests it using GraphQL v15, v16 and v17 plus the semantic-non-null supporting branch graphql@canary-pr-4192 (from graphql/graphql-js#4192). It also changes the logic around applying @semanticNonNull to an already non-null field (in this case, the non-null wins and the semantic is ignored).

Further it exports a new method, convertFieldConfig, which can be used to convert a lone GraphQLFieldConfig object to nullable or strict mode based on its embedded @semanticNonNull directive (via astNode).

@benjie benjie merged commit 7509281 into main Mar 19, 2025
6 checks passed
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