Skip to content

Conversation

@rmosolgo
Copy link
Owner

@rmosolgo rmosolgo commented Jul 18, 2024

This rule isn't actually part of the spec, and GraphQL-JS allows this construction.

From a compatibility standpoint, I don't think this poses any risks: any queries that were previously returned as invalid (wrongly) will now be executed. But I think anyone who encountered this in the past probably removed the !.

Fixes #5029

@rmosolgo rmosolgo added this to the 2.3.10 milestone Jul 18, 2024
@rmosolgo rmosolgo merged commit 18fdf6f into master Jul 18, 2024
@rmosolgo rmosolgo deleted the remove-rule-for-no-non-null-defaults branch February 20, 2025 20:14
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.

Rationale for the "defaultValueInvalidOnNonNullVariable" validation

2 participants