File tree Expand file tree Collapse file tree 1 file changed +6
-23
lines changed Expand file tree Collapse file tree 1 file changed +6
-23
lines changed Original file line number Diff line number Diff line change @@ -148,30 +148,13 @@ extend type Dog {
148
148
149
149
**Explanatory Text **
150
150
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 .
154
154
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.
175
158
176
159
For example given the following schema:
177
160
You can’t perform that action at this time.
0 commit comments