Skip to content

Commit

Permalink
Grammar: Add missing ImplementsInterface to Interface rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sungam3r authored Feb 3, 2020
1 parent 5a8da48 commit 3b001da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions spec/Appendix B -- Grammar Summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,12 @@ ArgumentsDefinition : ( InputValueDefinition+ )

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

InterfaceTypeDefinition : Description? interface Name Directives[Const]? FieldsDefinition?
InterfaceTypeDefinition : Description? interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?

InterfaceTypeExtension :
- extend interface Name Directives[Const]? FieldsDefinition
- extend interface Name Directives[Const]
- extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition
- extend interface Name ImplementsInterfaces? Directives[Const]
- extend interface Name ImplementsInterfaces

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

Expand Down
7 changes: 4 additions & 3 deletions spec/Section 3 -- Type System.md
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ Object type extensions have the potential to be invalid if incorrectly defined.

## Interfaces

InterfaceTypeDefinition : Description? interface Name Directives[Const]? FieldsDefinition?
InterfaceTypeDefinition : Description? interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?

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

InterfaceTypeExtension :
- extend interface Name Directives[Const]? FieldsDefinition
- extend interface Name Directives[Const]
- extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition
- extend interface Name ImplementsInterfaces? Directives[Const]
- extend interface Name ImplementsInterfaces

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

0 comments on commit 3b001da

Please sign in to comment.