code: function getDbIndexes(modelKlass) {
      const modelName = modelKlass.constructor.name;
      return modelName === "Model"
          ? typed_conversions_1.hashToArray(exports.indexesForModel[modelName])
          : (typed_conversions_1.hashToArray(exports.indexesForModel[modelName]) || []).concat(typed_conversions_1.hashToArray(exports.indexesForModel.Model));
  }
docs: Gets all the db indexes for a given model