Skip to content

Commit

Permalink
Merge pull request #93 from janko/graphql-trace-with-super
Browse files Browse the repository at this point in the history
Allow others to trace `execute_field` GQL event
  • Loading branch information
exAspArk authored Apr 2, 2024
2 parents f066e66 + 30d5816 commit fc4e0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/batch_loader/graphql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class BatchLoader
class GraphQL
module Trace
def execute_field(**_data)
result = yield
result = super
result.respond_to?(:__sync) ? BatchLoader::GraphQL.wrap_with_warning(result) : result
end
end
Expand Down

0 comments on commit fc4e0fe

Please sign in to comment.