Skip to content

Commit be7737e

Browse files
committed
Pass return_type instead of re-accessing it
1 parent bd1dc67 commit be7737e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/graphql/execution/interpreter/runtime.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ def evaluate_selection(path, result_name, field_ast_nodes_or_ast_node, owner_obj
442442
end
443443

444444
def evaluate_selection_with_args(arguments, field_defn, next_path, ast_node, field_ast_nodes, owner_type, object, is_eager_field, result_name, selection_result, parent_object, return_type) # rubocop:disable Metrics/ParameterLists
445+
after_lazy(arguments, owner: owner_type, field: field_defn, path: next_path, ast_node: ast_node, scoped_context: context.scoped_context, owner_object: object, arguments: arguments, result_name: result_name, result: selection_result) do |resolved_arguments|
445446
if resolved_arguments.is_a?(GraphQL::ExecutionError) || resolved_arguments.is_a?(GraphQL::UnauthorizedError)
446447
continue_value(next_path, resolved_arguments, owner_type, field_defn, return_type.non_null?, ast_node, result_name, selection_result)
447448
next

0 commit comments

Comments
 (0)