Skip to content

[2022-12] Revise IsVariableUsageAllowed to forbid nullable variable with default usage in non-nullable list position #1337

Closed
@benjie

Description

@benjie

Action: having default mode be the happy path which will require to spec text changes

Relates to: graphql/graphql-spec#1002

We should move IsVariableUsageAllowed as IsVariableUsageAllowedLegacy in an appendix (or an addendum within the section) and add a new IsVariableUsageAllowed that turns this issue from a runtime error to a validation error. Use IsVariableUsageAllowedLegacy if you need to support legacy queries.

Video: https://youtu.be/nkPn-F_UBJo?list=PLP1igyLx8foH30_sDnEZnxV_8pYW3SDtb&t=2702
Actual action item timestamp: https://youtu.be/nkPn-F_UBJo?list=PLP1igyLx8foH30_sDnEZnxV_8pYW3SDtb&t=3452


Note: Action Item issues are reviewed and closed during Working Group
meetings.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions