From dd4d5344e735644e182eb8a68cd10dd8e08cdc93 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Thu, 22 Nov 2018 17:18:41 +0200 Subject: [PATCH] Introspection: Clarify nullability of fields in `__Type` type Motivation: https://github.com/graphql/graphiql/issues/746#issuecomment-440855809 CC: @hlship --- spec/Section 4 -- Introspection.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/Section 4 -- Introspection.md b/spec/Section 4 -- Introspection.md index 8a24e2882..aee59ef9c 100644 --- a/spec/Section 4 -- Introspection.md +++ b/spec/Section 4 -- Introspection.md @@ -129,22 +129,22 @@ type __Type { name: String description: String - # OBJECT and INTERFACE only + # should be non-null for OBJECT and INTERFACE only, must be null for the others fields(includeDeprecated: Boolean = false): [__Field!] - # OBJECT only + # should be non-null for OBJECT only, must be null for the others interfaces: [__Type!] - # INTERFACE and UNION only + # should be non-null for INTERFACE and UNION only, always null for the others possibleTypes: [__Type!] - # ENUM only + # should be non-null for ENUM only, must be null for the others enumValues(includeDeprecated: Boolean = false): [__EnumValue!] - # INPUT_OBJECT only + # should be non-null for INPUT_OBJECT only, must be null for the others inputFields: [__InputValue!] - # NON_NULL and LIST only + # should be non-null for NON_NULL and LIST only, must be null for the others ofType: __Type }