Skip to content

Commit 4248ee6

Browse files
committed
Don't flag parent selections as dead when a leaf field raises an error
1 parent d3e97e4 commit 4248ee6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/graphql/execution/interpreter/runtime.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ def continue_value(path, value, parent_type, field, is_non_null, ast_node, resul
380380
value.ast_node ||= ast_node
381381
context.errors << value
382382
set_result(selection_result, result_name, nil)
383-
selection_result.graphql_dead = true
384383
end
385384
HALT
386385
elsif value.is_a?(GraphQL::UnauthorizedError)
@@ -600,7 +599,7 @@ def after_lazy(lazy_obj, owner:, field:, path:, scoped_context:, owner_object:,
600599
if eager
601600
lazy.value
602601
else
603-
result[result_name] = lazy
602+
set_result(result, result_name, lazy)
604603
lazy
605604
end
606605
else

0 commit comments

Comments
 (0)