Skip to content
Open
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
4 changes: 2 additions & 2 deletions spec/Section 3 -- Type System.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ type.

Similarly, the {`subscription`} _root operation type_ is also optional; if it is
not provided, the service does not support subscriptions. If it is provided, it
must be an Object type.
must be an Object type and must define at least one field.

The {`query`}, {`mutation`}, and {`subscription`} root types must all be
different types if provided.
Expand Down Expand Up @@ -922,7 +922,7 @@ Objects are never valid inputs.
Object types have the potential to be invalid if incorrectly defined. This set
of rules must be adhered to by every Object type in a GraphQL schema.

1. An Object type must define one or more fields.
Comment thread
benjie marked this conversation as resolved.
Resolved
1. An Object type must define a list of fields. The list may be empty.
2. For each field of an Object type:
1. The field must have a unique name within that Object type; no two fields
may share the same name.
Expand Down
Loading