Make operation name optional

This commit is contained in:
Danny Navarro
2017-02-03 20:08:40 -03:00
parent 693b7d18dc
commit 8b09c8aa76
3 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ definition = DefinitionOperation <$> operationDefinition
operationDefinition :: Parser OperationDefinition
operationDefinition = OperationSelectionSet <$> selectionSet
<|> OperationDefinition <$> operationType
<*> name
<*> optional name
<*> opt variableDefinitions
<*> opt directives
<*> selectionSet