lib/rails/graphql/argument.rb
def validate!(*)
        super if defined? super

        raise NameError, <<~MSG.squish if gql_name.start_with?('__')
          The name "#{gql_name}" is invalid. Argument names cannot start with "__".
        MSG

        raise ArgumentError, <<~MSG.squish unless type_klass.is_a?(Module)
          Unable to find the "#{type.inspect}" input type on GraphQL context.
        MSG

        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?(default)
          The given default value "#{default.inspect}" is not valid for this argument.
        MSG
      end
# Checks if the definition of the argument is valid
Checks if the definition of the argument is valid
Checks if the definition of the argument is valid
def validate!(*)
        super if defined? super
        raise NameError, <<~MSG.squish if gql_name.start_with?('__')
          The name "#{gql_name}" is invalid. Argument names cannot start with "__".
        MSG
        raise ArgumentError, <<~MSG.squish unless type_klass.is_a?(Module)
          Unable to find the "#{type.inspect}" input type on GraphQL context.
        MSG
        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?(default)
          The given default value "#{default.inspect}" is not valid for this argument.
        MSG
      end
def validate! ( * ) super if defined? super raise NameError , <<~MSG . squish if gql_name . start_with? ( '__' ) 
          The name " #{ gql_name } " is invalid. Argument names cannot start with "__".
         MSG raise ArgumentError , <<~MSG . squish unless type_klass . is_a? ( Module ) 
          Unable to find the " #{ type . inspect } " input type on GraphQL context.
         MSG 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? ( default ) 
          The given default value " #{ default . inspect } " is not valid for this argument.
         MSG end
Checks if the definition of the argument is valid
Checks if the definition of the argument is valid