lib/rails/graphql/native/visitor.rb
def visit_argument(node)
          if @visit&.include?('argument')
            stack << ArgumentObject.new
          elsif @visit&.include?('field')
            (object[:arguments] ||= []) << node
          else
            visit(argument_value(node))
            arg_name = node_name(argument_name(node))
            (stack[-2][:arguments] ||= {})[arg_name] = stack.pop
          end
        end
# Get an argument information with its given written value
Get an argument information with its given written value
Get an argument information with its given written value
def visit_argument(node)
          if @visit&.include?('argument')
            stack << ArgumentObject.new
          elsif @visit&.include?('field')
            (object[:arguments] ||= []) << node
          else
            visit(argument_value(node))
            arg_name = node_name(argument_name(node))
            (stack[-2][:arguments] ||= {})[arg_name] = stack.pop
          end
        end
def visit_argument ( node ) if @visit &. include? ( 'argument' ) stack << ArgumentObject . new elsif @visit &. include? ( 'field' ) ( object [ :arguments ] ||= [ ] ) << node else visit ( argument_value ( node ) ) arg_name = node_name ( argument_name ( node ) ) ( stack [ - 2 ] [ :arguments ] ||= { } ) [ arg_name ] = stack . pop end end
Get an argument information with its given written value
Get an argument information with its given written value
node