Skip to content

Commit

Permalink
Work around bug in graphql-php
Browse files Browse the repository at this point in the history
The class `\GraphQL\Language\Parser` from the webonyx/graphql-php package throws an `Syntax Error: Unexpected Name "INTERFACE"` exception when the token `INTERFACE` comes last in the `DirectiveLocations` part of a directive declaration.
Adding `OBJECT` as the last item removes the error.
  • Loading branch information
Vinai authored Jul 17, 2019
1 parent f25f779 commit 301ebe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/GraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ directive @resolver(class: String="") on QUERY
| INPUT_OBJECT
| INPUT_FIELD_DEFINITION

directive @typeResolver(class: String="") on INTERFACE
directive @typeResolver(class: String="") on INTERFACE | OBJECT

type Query {
}
Expand Down

0 comments on commit 301ebe7

Please sign in to comment.