From a9c0294caaf8c045c4ad2af6e44e047e8b2c0d28 Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Tue, 20 Feb 2024 11:06:26 -0600 Subject: [PATCH] Make executor_class optional in trace class Otherwise `Schema.new_trace` will require `executor_class` as a keyword arg which is the wrong place to pass it in. --- lib/graphql/batch/setup_multiplex.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphql/batch/setup_multiplex.rb b/lib/graphql/batch/setup_multiplex.rb index ad1d392..fdbf1b0 100644 --- a/lib/graphql/batch/setup_multiplex.rb +++ b/lib/graphql/batch/setup_multiplex.rb @@ -14,7 +14,7 @@ def after_multiplex(multiplex) end module Trace - def initialize(executor_class:, **_rest) + def initialize(executor_class: nil, **_rest) @executor_class = executor_class super end