From 0efe478ca997bbe4ae7b80ad3aac0398a3b730c0 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Fri, 23 Nov 2018 23:53:02 +0200 Subject: [PATCH] Synchronise grammar rules across the spec --- spec/Appendix B -- Grammar Summary.md | 10 +++++----- spec/Section 3 -- Type System.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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