initConvertMap(models) {
    // by default, original value is used for imported documents
    for (const model of Object.values(models)) {
      if (model.collection == null) {
        continue;
      }

      const collectionName = model.collection.name;
      this.convertMap[collectionName] = {};

      for (const key of Object.keys(model.schema.paths)) {
        this.convertMap[collectionName][key] = this.keepOriginal;
      }
    }
  }
/**
   * initialize convert map. set keepOriginal as default
   *
   * @memberOf ImportService
   * @param {object} models from models/index.js
   */
initialize convert map. set keepOriginal as default
@memberOf ImportService
@param {object} models from models/index.js
initialize convert map . set keepOriginal as default @memberOf ImportService @param { object } models from models / index . js
initConvertMap(models) {
    for (const model of Object.values(models)) {
      if (model.collection == null) {
        continue;
      }
      const collectionName = model.collection.name;
      this.convertMap[collectionName] = {};
      for (const key of Object.keys(model.schema.paths)) {
        this.convertMap[collectionName][key] = this.keepOriginal;
      }
    }
  }
initConvertMap ( models ) { for ( const model of Object . values ( models ) ) { if ( model . collection == null ) { continue ; } const collectionName = model . collection . name ; this . convertMap [ collectionName ] = { } ; for ( const key of Object . keys ( model . schema . paths ) ) { this . convertMap [ collectionName ] [ key ] = this . keepOriginal ; } } }
initialize convert map.
initialize convert map .
// by default, original value is used for imported documents