lib/rails/graphql/type/input.rb
def validate!(*)
          errors = []
          fields.each do |name, field|
            field.validate_output!(@args[name.to_s])
          rescue InvalidValueError => error
            errors << error.message
          end

          return if errors.empty?
          raise InvalidValueError, <<~MSG.squish
            Invalid value provided to #{gql_name} field: #{errors.to_sentence}.
          MSG
        end
# Checks if all the values provided to the input instance are valid
Checks if all the values provided to the input instance are valid
Checks if all the values provided to the input instance are valid
def validate!(*)
          errors = []
          fields.each do |name, field|
            field.validate_output!(@args[name.to_s])
          rescue InvalidValueError => error
            errors << error.message
          end
          return if errors.empty?
          raise InvalidValueError, <<~MSG.squish
            Invalid value provided to #{gql_name} field: #{errors.to_sentence}.
          MSG
        end
def validate! ( * ) errors = [ ] fields . each do | name , field | field . validate_output! ( @args [ name . to_s ] ) rescue InvalidValueError => error errors << error . message end return if errors . empty? raise InvalidValueError , <<~MSG . squish 
            Invalid value provided to  #{ gql_name }  field:  #{ errors . to_sentence } .
           MSG end
Checks if all the values provided to the input instance are valid
Checks if all the values provided to the input instance are valid