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

@semanticNonNull and semantic nullability support #3396

Open
slightlytyler opened this issue Nov 25, 2024 · 0 comments
Open

@semanticNonNull and semantic nullability support #3396

slightlytyler opened this issue Nov 25, 2024 · 0 comments

Comments

@slightlytyler
Copy link

slightlytyler commented Nov 25, 2024

What happened?

Currently gqlgen does not support @semanticNonNull directive which is currently proposed as an interim solution to the semantic nullability proposal. To support this I think gqlgen would need to:

  • Handle fields marked as @semanticNonNull in codegen. This would mean the codegen types would disallow null values being returned from the resolvers and the runtime would prevent null propagation caused by returning errors.
  • Include @semanticNonNull annotations in introspection.

There might be additional details needed for support but these are the ones I was able to identify.

What did you expect?

Minimal graphql.schema and models to reproduce

versions

  • go run github.com/99designs/gqlgen version?
  • go version?
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

No branches or pull requests

1 participant