Skip to content

Commit 8c6f5df

Browse files
committed
More editorial
1 parent eab709f commit 8c6f5df

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

spec/Section 5 -- Validation.md

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -148,30 +148,13 @@ extend type Dog {
148148

149149
**Explanatory Text**
150150

151-
A schema defines the root operation types that it supports. Any document that
152-
contains an operation of a type unsupported by the schema is invalid, since such
153-
an operation cannot be executed.
151+
A schema defines the root operation type for each kind of operation that it
152+
supports. Every schema must support `query` operations, however support for
153+
`mutation` and `subscription` operations is optional.
154154

155-
While query operations are required for all schemas, mutation and subscription
156-
operations are optional. If the schema does not include the necessary type for a
157-
mutation or subscription operation defined in the document, it will be
158-
considered invalid.
159-
160-
For example, the following document is valid if the schema includes a Mutation
161-
type, but invalid if it does not:
162-
163-
```graphql example
164-
mutation {
165-
likeStory(storyID: 12345) {
166-
story {
167-
likeCount
168-
}
169-
}
170-
}
171-
```
172-
173-
Each operation must reference an operation type which has a valid root type in
174-
the schema.
155+
If the schema does not include the necessary _root operation type_ for an
156+
operation defined in the document, that operation is invalid since it cannot be
157+
executed.
175158

176159
For example given the following schema:
177160

0 commit comments

Comments
 (0)