@@ -332,20 +332,20 @@ contain any number of operations, each of which may contain different root
332
332
fields. When executed, a document containing multiple subscription operations
333
333
must provide the operation name as described in {GetOperation()}.
334
334
335
- ### Operation Type Configuration
335
+ ### Operation Type Exists
336
336
337
337
#### Formal Specification
338
338
339
339
For each operation definition in the document:
340
340
341
- - Let {operationType} be the type of the operation (query, mutation, or subscription).
342
- - The corresponding type for {operationType} must be defined in the schema.
341
+ - Let {operationType} be the type of the operation (` query ` , ` mutation ` , or ` subscription ` ).
342
+ - The corresponding _ root operation type _ for {operationType} must be defined in the schema.
343
343
344
344
#### Explanatory Text
345
345
346
- The schema must be properly configured to handle mutation and subscription operation
347
- types. This ensures that when a mutation or subscription operation is defined in the
348
- document, the schema includes the appropriate type to handle these operations .
346
+ A schema defines the root operation types that it supports. Any document that
347
+ contains an operation of a type unsupported by the schema is invalid, since such
348
+ an operation cannot be executed .
349
349
350
350
While query operations are required for all schemas, mutation and subscription operations
351
351
are optional. If the schema does not include the necessary type for a mutation or subscription
@@ -354,7 +354,7 @@ operation defined in the document, it will be considered invalid.
354
354
For example, the following document is valid if the schema includes a Mutation type, but
355
355
invalid if it does not:
356
356
357
- ``` graphql
357
+ ``` graphql example
358
358
mutation {
359
359
likeStory (storyID : 12345 ) {
360
360
story {
0 commit comments