lib/rails/graphql/native/visitor.rb
# Add a variable definition to the current object
Add a variable definition to the current object
Add a variable definition to the current object
def visit_variable_definition(node)
          if @visit&.include?('variable_definition')
            stack << VariableObject.new.tap do |obj|
              obj.null = true
              obj.array = false
              obj.nullable = true
            end
          else
            (object[:variables] ||= []) << node
          end
        end
def visit_variable_definition ( node ) if @visit &. include? ( 'variable_definition' ) stack << VariableObject . new . tap do | obj | obj . null = true obj . array = false obj . nullable = true end else ( object [ :variables ] ||= [ ] ) << node end end
Add a variable definition to the current object
Add a variable definition to the current object
node