Skip to content

fix(GraphQL): only mark types as nonNull if they are unconditional #778#780

Merged
jaredhendrickson13 merged 3 commits intomasterfrom
next_patch
Nov 13, 2025
Merged

fix(GraphQL): only mark types as nonNull if they are unconditional #778#780
jaredhendrickson13 merged 3 commits intomasterfrom
next_patch

Conversation

@jaredhendrickson13
Copy link
Member

Fixes

Fields that are conditionally required need to be nullable as they are only required if the fields conditions are met. Marking them as nonNull types will result in schema errors if the condition is not met for a specific object.
@jaredhendrickson13 jaredhendrickson13 merged commit c1bb0ac into master Nov 13, 2025
13 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.

GraphQL Query results in Internal Server Error for Nullable Fields

1 participant