Skip to content

Introspection: Clarify nullability of fields in __Type type #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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