You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixes
Improve GraphQL operation validation
Faster validation (2-3x): rules now share a single OperationVisitor pass over the operation document instead of each rule visiting it independently.
New UniqueInputFieldNames rule: input object fields are now kept as a list rather than a map, so duplicate fields are no longer silently deduplicated before validation. A query like { field(input: { value: 1, value: 2 }) } is now correctly rejected.
Fixed VariablesInAllowedPosition: now accounts for default values on variables, field arguments, and input object fields. Nullable variables used in a non-null argument that defines a default are no longer incorrectly rejected.