graphql / graphql/graphql-spec

Clarify validation rule on non-null type wrapping another non-null type

Open
#992 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.