Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Add semantic nullability capability to async-graphql#104

Merged
abliskovsky-agilebits merged 5 commits intomainfrom
blitz/push-muqkuztzrytk
Mar 2, 2026
Merged

Add semantic nullability capability to async-graphql#104
abliskovsky-agilebits merged 5 commits intomainfrom
blitz/push-muqkuztzrytk

Conversation

@abliskovsky-agilebits
Copy link
Copy Markdown
Collaborator

@abliskovsky-agilebits abliskovsky-agilebits commented Feb 25, 2026

The nullable-result and semanticNonNull branches are somewhat out of date on the remote, so this MR updates them to work with our latest async-graphql

The original MR is here: async-graphql/async-graphql#1638

if cfg!(feature = "nullable-result") {
match semantic_nullability {
SemanticNullability::None => SemanticNullability::None,
SemanticNullability::OutNonNull => SemanticNullability::InNonNull,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, is this load bearing and if so what does it mean?

I suppose the match statement wouldn't be there if this wasn't needed but I haven't groked why

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be a hack to extend semantic nullability to the members of the list. Without it, it would be ok for the list to be null but not the members of the list to be null.

@abliskovsky-agilebits abliskovsky-agilebits merged commit e9b62ee into main Mar 2, 2026
5 checks passed
@abliskovsky-agilebits abliskovsky-agilebits deleted the blitz/push-muqkuztzrytk branch March 2, 2026 17:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants