lib/batch_loader/graphql.rb in batch-loader-2.0.3 vs lib/batch_loader/graphql.rb in batch-loader-2.0.4
- old
+ new
@@ -2,10 +2,10 @@
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
def self.use(schema_definition)