lib/rails/graphql/request/steps/organizable.rb
def parse_arguments
            args = {}
            visitor.collect_arguments(*data[:arguments]) do |data|
              args[data[:name]] = variable = data[:variable]
              args[data[:name]] = data[:value] if variable.nil? || variable.null?
            end unless data[:arguments].blank?

            args = collect_arguments(self, args) do |errors|
              "Invalid arguments for #{gql_name} #{kind}: #{errors}."
            end

            @arguments = request.build(Request::Arguments, args).freeze
          end
# Helper parser for arguments that also collect necessary variables
Helper parser for arguments that also collect necessary variables
Helper parser for arguments that also collect necessary variables
def parse_arguments
            args = {}
            visitor.collect_arguments(*data[:arguments]) do |data|
              args[data[:name]] = variable = data[:variable]
              args[data[:name]] = data[:value] if variable.nil? || variable.null?
            end unless data[:arguments].blank?
            args = collect_arguments(self, args) do |errors|
              "Invalid arguments for #{gql_name} #{kind}: #{errors}."
            end
            @arguments = request.build(Request::Arguments, args).freeze
          end
def parse_arguments args = { } visitor . collect_arguments ( * data [ :arguments ] ) do | data | args [ data [ :name ] ] = variable = data [ :variable ] args [ data [ :name ] ] = data [ :value ] if variable . nil? || variable . null? end unless data [ :arguments ] . blank? args = collect_arguments ( self , args ) do | errors | "Invalid arguments for #{gql_name} #{kind}: #{errors}." end @arguments = request . build ( Request :: Arguments , args ) . freeze end
Helper parser for arguments that also collect necessary variables
Helper parser for arguments that also collect necessary variables