Skip to content

Commit

Permalink
Merge branch 'master' into lazies-list
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Feb 22, 2023
2 parents 691e828 + d0fdeea commit 988a602
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 95 deletions.
2 changes: 1 addition & 1 deletion lib/graphql/backtrace/tracer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def trace(key, metadata)
when "execute_field", "execute_field_lazy"
query = metadata[:query]
multiplex = query.multiplex
push_key = metadata[:path]
push_key = query.context[:current_path]
parent_frame = multiplex.context[:graphql_backtrace_contexts][push_key[0..-2]]

if parent_frame.is_a?(GraphQL::Query)
Expand Down
10 changes: 2 additions & 8 deletions lib/graphql/execution/interpreter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ def run_all(schema, query_options, context: {}, max_complexity: schema.max_compl
queries.each do |query|
runtime = query.context.namespace(:interpreter_runtime)[:runtime]
if runtime
runtime.delete_interpreter_context(:current_path)
runtime.delete_interpreter_context(:current_field)
runtime.delete_interpreter_context(:current_object)
runtime.delete_interpreter_context(:current_arguments)
runtime.delete_all_interpreter_context
end
end
}
Expand Down Expand Up @@ -151,10 +148,7 @@ def run_all(schema, query_options, context: {}, max_complexity: schema.max_compl
queries.map { |query|
runtime = query.context.namespace(:interpreter_runtime)[:runtime]
if runtime
runtime.delete_interpreter_context(:current_path)
runtime.delete_interpreter_context(:current_field)
runtime.delete_interpreter_context(:current_object)
runtime.delete_interpreter_context(:current_arguments)
runtime.delete_all_interpreter_context
end
}
end
Expand Down
Loading

0 comments on commit 988a602

Please sign in to comment.