lib/generators/graphql/templates/graphql_controller.erb in graphql-1.6.3 vs lib/generators/graphql/templates/graphql_controller.erb in graphql-1.6.4

- old
+ new

@@ -1,13 +1,14 @@ class GraphqlController < ApplicationController def execute variables = ensure_hash(params[:variables]) query = params[:query] + operation_name = params[:operationName] context = { # Query context goes here, for example: # current_user: current_user, } - result = <%= schema_name %>.execute(query, variables: variables, context: context) + result = <%= schema_name %>.execute(query, variables: variables, context: context, operation_name: operation_name) render json: result end private