INNER CODE UNIT · TypeScript

importCollection

pkosiec/mongo-seeding · core/src/importer/index.ts:57

  private async importCollection(collection: SeederCollection) {
    this.log(
      `Inserting ${collection.documents.length} documents into collection ${collection.name}...`,
    );
    return this.db.insertDocumentsIntoCollection(
      collection.documents,
      collection.name,
      this.bulkWriteOptions,
    );
  }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…