Skip to content

Commit fe8cee0

Browse files
committed
Default Root Op type names: removed duplicate statement, added that only Query type is required.
1 parent 47a6bfd commit fe8cee0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

spec/Section 3 -- Type System.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,8 @@ type MyMutationRootType {
214214
While any type can be the root operation type for a GraphQL operation, the type
215215
system definition language can omit the schema definition when the {`query`},
216216
{`mutation`}, and {`subscription`} root types are named {"Query"}, {"Mutation"},
217-
and {"Subscription"} respectively.
218-
219-
Likewise, when representing a GraphQL schema using the type system definition
220-
language, a schema definition should be omitted if it only uses the default root
221-
operation type names.
217+
and {"Subscription"} respectively. This rule applies also when Mutation or
218+
Subscription type is not defined (or both); only the Query type is required.
222219

223220
This example describes a valid complete GraphQL schema, despite not explicitly
224221
including a {`schema`} definition. The {"Query"} type is presumed to be the

0 commit comments

Comments
 (0)