def convert_type type
      return type if type.is_a? GraphQL::BaseType

      unless type.is_a? Symbol
        type = type.to_s.downcase.to_sym
      end

      {
        boolean: GraphQL::BOOLEAN_TYPE,
        date: GraphQL::Types::DATE,
        datetime: GraphQL::Types::ISO8601DateTime,
        decimal: GraphQL::Types::DECIMAL,
        float: GraphQL::FLOAT_TYPE,
        int: GraphQL::INT_TYPE,
        integer: GraphQL::INT_TYPE,
        json: GraphQL::Types::JSON,
        string: GraphQL::STRING_TYPE,
        text: GraphQL::STRING_TYPE,
      }[type]
    end
def convert_type type
      return type if type.is_a? GraphQL::BaseType

      unless type.is_a? Symbol
        type = type.to_s.downcase.to_sym
      end

      {
        boolean: GraphQL::BOOLEAN_TYPE,
        date: GraphQL::Types::DATE,
        datetime: GraphQL::Types::ISO8601DateTime,
        decimal: GraphQL::Types::DECIMAL,
        float: GraphQL::FLOAT_TYPE,
        int: GraphQL::INT_TYPE,
        integer: GraphQL::INT_TYPE,
        json: GraphQL::Types::JSON,
        string: GraphQL::STRING_TYPE,
        text: GraphQL::STRING_TYPE,
      }[type]
    end
convert Active Record type to GraphQL type