lib/rails/graphql/field/typed_field.rb
# Checks if the type of the field is valid
Checks if the type of the field is valid
Checks if the type of the field is valid
def validate!(*)
        super if defined? super
        raise ArgumentError, <<~MSG.squish unless type_klass.is_a?(Module)
          Unable to find the "#{type.inspect}" input type on GraphQL context.
        MSG
        valid_type = valid_field_types.empty? || valid_field_types.any? do |base_type|
          type_klass < base_type
        end
        raise ArgumentError, <<~MSG.squish unless valid_type
          The "#{type_klass.base_type}" is not accepted in this context.
        MSG
      end
def validate! ( * ) super if defined? super raise ArgumentError , <<~MSG . squish unless type_klass . is_a? ( Module ) 
          Unable to find the " #{ type . inspect } " input type on GraphQL context.
         MSG valid_type = valid_field_types . empty? || valid_field_types . any? do | base_type | type_klass < base_type end raise ArgumentError , <<~MSG . squish unless valid_type 
          The " #{ type_klass . base_type } " is not accepted in this context.
         MSG end
Checks if the type of the field is valid
Checks if the type of the field is valid