lib/graphql/stitching/executor.rb in graphql-stitching-1.5.0 vs lib/graphql/stitching/executor.rb in graphql-stitching-1.5.1

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true require "json" -require_relative "executor/resolver_source" require_relative "executor/root_source" +require_relative "executor/type_resolver_source" require_relative "executor/shaper" module GraphQL module Stitching # Executor handles executing upon a planned request. @@ -64,10 +64,10 @@ tasks = @request.plan .ops .select { next_steps.include?(_1.after) } .group_by { [_1.location, _1.resolver.nil?] } .map do |(location, root_source), ops| - source_class = root_source ? RootSource : ResolverSource + source_class = root_source ? RootSource : TypeResolverSource @dataloader.with(source_class, self, location).request_all(ops) end tasks.each(&method(:exec_task)) end