How to use the mongo-seeding.seedDatabase function in mongo-seeding

To help you get started, we’ve selected a few mongo-seeding examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pkosiec / mongo-seeding / docker-image / src / index.ts View on Github external
(async () => {
  try {
    await seedDatabase(envOptions);
  } catch (err) {
    console.error(`Error ${err.name}: ${err.message}`);
    process.exit(1);
  }
})();

mongo-seeding

The ultimate Node.js library for populating your MongoDB database.

MIT
Latest version published 3 months ago

Package Health Score

75 / 100
Full package analysis