From fe8cee02d696872ab7460e7719202d7dbabfc313 Mon Sep 17 00:00:00 2001 From: Roman Ivantsov Date: Tue, 2 Aug 2022 18:33:56 -0700 Subject: [PATCH] Default Root Op type names: removed duplicate statement, added that only Query type is required. --- spec/Section 3 -- Type System.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/spec/Section 3 -- Type System.md b/spec/Section 3 -- Type System.md index 7175d08be..91690ef13 100644 --- a/spec/Section 3 -- Type System.md +++ b/spec/Section 3 -- Type System.md @@ -214,11 +214,8 @@ type MyMutationRootType { While any type can be the root operation type for a GraphQL operation, the type system definition language can omit the schema definition when the {`query`}, {`mutation`}, and {`subscription`} root types are named {"Query"}, {"Mutation"}, -and {"Subscription"} respectively. - -Likewise, when representing a GraphQL schema using the type system definition -language, a schema definition should be omitted if it only uses the default root -operation type names. +and {"Subscription"} respectively. This rule applies also when Mutation or +Subscription type is not defined (or both); only the Query type is required. This example describes a valid complete GraphQL schema, despite not explicitly including a {`schema`} definition. The {"Query"} type is presumed to be the