lib/rails/graphql/field/input_field.rb
def valid_input?(value, deep: true)
        return false unless super
        return null? if value.nil?
        return valid_input_array?(value, deep) if array?

        return true unless leaf_type? || deep
        type_klass.valid_input?(value)
      end
# This checks if a given serialized value is valid for this field
This checks if a given serialized value is valid for this field
This checks if a given serialized value is valid for this field
def valid_input?(value, deep: true)
        return false unless super
        return null? if value.nil?
        return valid_input_array?(value, deep) if array?
        return true unless leaf_type? || deep
        type_klass.valid_input?(value)
      end
def valid_input? ( value , deep : true ) return false unless super return null? if value . nil? return valid_input_array? ( value , deep ) if array? return true unless leaf_type? || deep type_klass . valid_input? ( value ) end
This checks if a given serialized value is valid for this field
This checks if a given serialized value is valid for this field
value
deep