graphql / graphql/graphql-spec
Clarify validation rule on non-null type wrapping another non-null type
Open
- Dominant language
- JavaScript
- Stars
- 14.6k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
The [specification](https://spec.graphql.org/October2021/#sel-HAHlBLDBABAB0B7gY) states that:
> A Non-Null type must not wrap another Non-Null type.
In the specification we see the type `[Int!]!` used in [an example](https://spec.graphql.org/October2021/#sel-KAHlBNJDZBAABABHu0Z), which is a non-null list type that wraps another non-null named type.
The validation rule cannot hold and the example be valid simultaneously.
Contributor guide
Assessment
This issue has not been assessed yet.