Skip to content

Commit 3b001da

Browse files
authored
Grammar: Add missing ImplementsInterface to Interface rules
1 parent 5a8da48 commit 3b001da

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

spec/Appendix B -- Grammar Summary.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,12 @@ ArgumentsDefinition : ( InputValueDefinition+ )
268268

269269
InputValueDefinition : Description? Name : Type DefaultValue? Directives[Const]?
270270

271-
InterfaceTypeDefinition : Description? interface Name Directives[Const]? FieldsDefinition?
271+
InterfaceTypeDefinition : Description? interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?
272272

273273
InterfaceTypeExtension :
274-
- extend interface Name Directives[Const]? FieldsDefinition
275-
- extend interface Name Directives[Const]
274+
- extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition
275+
- extend interface Name ImplementsInterfaces? Directives[Const]
276+
- extend interface Name ImplementsInterfaces
276277

277278
UnionTypeDefinition : Description? union Name Directives[Const]? UnionMemberTypes?
278279

spec/Section 3 -- Type System.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ Object type extensions have the potential to be invalid if incorrectly defined.
975975

976976
## Interfaces
977977

978-
InterfaceTypeDefinition : Description? interface Name Directives[Const]? FieldsDefinition?
978+
InterfaceTypeDefinition : Description? interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?
979979

980980
GraphQL interfaces represent a list of named fields and their arguments. GraphQL
981981
objects and interfaces can then implement these interfaces which requires that
@@ -1164,8 +1164,9 @@ Interface types have the potential to be invalid if incorrectly defined.
11641164
### Interface Extensions
11651165

11661166
InterfaceTypeExtension :
1167-
- extend interface Name Directives[Const]? FieldsDefinition
1168-
- extend interface Name Directives[Const]
1167+
- extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition
1168+
- extend interface Name ImplementsInterfaces? Directives[Const]
1169+
- extend interface Name ImplementsInterfaces
11691170

11701171
Interface type extensions are used to represent an interface which has been
11711172
extended from some original interface. For example, this might be used to

0 commit comments

Comments
 (0)