diff --git a/spec/Appendix B -- Grammar Summary.md b/spec/Appendix B -- Grammar Summary.md index 6299a7718..285b299d1 100644 --- a/spec/Appendix B -- Grammar Summary.md +++ b/spec/Appendix B -- Grammar Summary.md @@ -103,10 +103,10 @@ ExecutableDefinition : - FragmentDefinition OperationDefinition : - - SelectionSet - OperationType Name? VariableDefinitions? Directives? SelectionSet + - SelectionSet -OperationType : one of query mutation subscription +OperationType : one of `query` `mutation` `subscription` SelectionSet : { Selection+ } @@ -194,13 +194,13 @@ TypeSystemExtension : - SchemaExtension - TypeExtension -SchemaDefinition : schema Directives[Const]? { OperationTypeDefinition+ } +SchemaDefinition : schema Directives[Const]? { RootOperationTypeDefinition+ } SchemaExtension : - - extend schema Directives[Const]? { OperationTypeDefinition+ } + - extend schema Directives[Const]? { RootOperationTypeDefinition+ } - extend schema Directives[Const] -OperationTypeDefinition : OperationType : NamedType +RootOperationTypeDefinition : OperationType : NamedType Description : StringValue diff --git a/spec/Section 3 -- Type System.md b/spec/Section 3 -- Type System.md index 9677a17f4..f6fe26844 100644 --- a/spec/Section 3 -- Type System.md +++ b/spec/Section 3 -- Type System.md @@ -153,7 +153,7 @@ type Query { ### Schema Extension SchemaExtension : - - extend schema Directives[Const]? { OperationTypeDefinition+ } + - extend schema Directives[Const]? { RootOperationTypeDefinition+ } - extend schema Directives[Const] Schema extensions are used to represent a schema which has been extended from