lib/rails/graphql/request/component/operation.rb
def report_unused_variables
            (arguments.keys - used_variables.to_a).each do |key|
              argument = arguments[key]
              request.report_node_error(<<~MSG.squish, argument.node || @node)
                Unused variable $#{argument.gql_name} on #{log_source}.
              MSG
            end

            @arguments = nil
            @used_variables = nil
          end
# Add an error for each not used variable and then clean up some data
Add an error for each not used variable and then clean up some data
Add an error for each not used variable and then clean up some data
def report_unused_variables
            (arguments.keys - used_variables.to_a).each do |key|
              argument = arguments[key]
              request.report_node_error(<<~MSG.squish, argument.node || @node)
                Unused variable $#{argument.gql_name} on #{log_source}.
              MSG
            end
            @arguments = nil
            @used_variables = nil
          end
def report_unused_variables ( arguments . keys - used_variables . to_a ) . each do | key | argument = arguments [ key ] request . report_node_error ( <<~MSG . squish , argument . node || @node ) 
                Unused variable $ #{ argument . gql_name }  on  #{ log_source } .
               MSG end @arguments = nil @used_variables = nil end
Add an error for each not used variable and then clean up some data
Add an error for each not used variable and then clean up some data