lib/rails/graphql/native/visitor.rb
# Add a variable to the stack
Add a variable to the stack
Add a variable to the stack
def visit_variable(node)
          if @visit&.include?('argument')
            object[:variable] = variable_name(node)
          elsif @visit&.include?('variable_definition')
            object[:name] = visit_name(variable_name(node))
          else
            stack << variable_name(node)
          end
        end
def visit_variable ( node ) if @visit &. include? ( 'argument' ) object [ :variable ] = variable_name ( node ) elsif @visit &. include? ( 'variable_definition' ) object [ :name ] = visit_name ( variable_name ( node ) ) else stack << variable_name ( node ) end end
Add a variable to the stack
Add a variable to the stack
node