INNER CODE UNIT · TypeScript

CollectionImporter

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

export class CollectionImporter {
  /**
   * Wrapper for MongoDB database
   */
  db: Database;

  /**
   * Logger instance
   */
  log: LogFn;

  /**
   * Optional MongoDB collection create options
   */
  bulkWriteOptions?: BulkWriteOptions;

  /**
   * Constructs new `CollectionImporter` instance.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…