lib/graphql/language/parser.y in graphql-0.14.2 vs lib/graphql/language/parser.y in graphql-0.15.0

- old
+ new

@@ -11,11 +11,11 @@ definition: operation_definition | fragment_definition operation_definition: - operation_type operation_name_opt variable_definitions_opt directives_list_opt selection_set { + name operation_name_opt variable_definitions_opt directives_list_opt selection_set { return make_node( :OperationDefinition, { operation_type: val[0], name: val[1], variables: val[2], @@ -32,15 +32,10 @@ selections: val[0], } ) } - operation_type: - QUERY - | MUTATION - | SUBSCRIPTION - operation_name_opt: /* none */ { return nil } | name variable_definitions_opt: @@ -119,12 +114,9 @@ name_without_on: IDENTIFIER | FRAGMENT | TRUE | FALSE - | QUERY - | MUTATION - | SUBSCRIPTION arguments_opt: /* none */ { return [] } | RPAREN LPAREN { return [] } | RPAREN arguments_list LPAREN { return val[1] }