lib/rails/graphql/field/input_field.rb
# Checks if the default value of the field is valid
Checks if the default value of the field is valid
Checks if the default value of the field is valid
def validate!(*)
        super if defined? super
        raise ArgumentError, <<~MSG.squish unless type_klass.input_type?
          The "#{type_klass.gql_name}" is not a valid input type.
        MSG
        raise ArgumentError, <<~MSG.squish unless default.nil? || valid_input?(default)
          The given default value "#{default.inspect}" is not valid for this field.
        MSG
      end
def validate! ( * ) super if defined? super raise ArgumentError , <<~MSG . squish unless type_klass . input_type? 
          The " #{ type_klass . gql_name } " is not a valid input type.
         MSG raise ArgumentError , <<~MSG . squish unless default . nil? || valid_input? ( default ) 
          The given default value " #{ default . inspect } " is not valid for this field.
         MSG end
Checks if the default value of the field is valid
Checks if the default value of the field is valid