diff --git a/lib/datadog/appsec/contrib/graphql/gateway/multiplex.rb b/lib/datadog/appsec/contrib/graphql/gateway/multiplex.rb index 3168cc09962..df5d82f3c12 100644 --- a/lib/datadog/appsec/contrib/graphql/gateway/multiplex.rb +++ b/lib/datadog/appsec/contrib/graphql/gateway/multiplex.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require 'graphql/language/nodes' + require_relative '../../../instrumentation/gateway/argument' module Datadog @@ -27,7 +29,6 @@ def queries private def create_arguments_hash - require 'graphql/language/nodes' args = {} @multiplex.queries.each_with_index do |query, index| resolver_args = {}