lib/graphql/batch/loader.rb in graphql-batch-0.2.3 vs lib/graphql/batch/loader.rb in graphql-batch-0.2.4

- old
+ new

@@ -1,8 +1,9 @@ module GraphQL::Batch class Loader def self.for(*group_args) - Executor.current.loaders[group_args] ||= new(*group_args) + loader_key = [self].concat(group_args) + Executor.current.loaders[loader_key] ||= new(*group_args) end def promises_by_key @promises_by_key ||= {} end