diff --git a/lib/batch_loader/graphql.rb b/lib/batch_loader/graphql.rb index f8ae756..da516b3 100644 --- a/lib/batch_loader/graphql.rb +++ b/lib/batch_loader/graphql.rb @@ -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