Skip to content

Commit

Permalink
Introspection: Clarify nullability of fields in __Type type (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored Jul 5, 2019
1 parent f18c922 commit a9b186a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/Section 4 -- Introspection.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a9b186a

Please sign in to comment.