Skip to content

Instantly share code, notes, and snippets.

View pkosiec's full-sized avatar

Pawel Kosiec pkosiec

View GitHub Profile
@pkosiec
pkosiec / mongo-seeding-example.js
Last active August 2, 2021 11:43
Seed MongoDB database programmatically
const path = require('path');
const { Seeder } = require('mongo-seeding');
const config = {
database: {
name: 'mydbname',
},
dropDatabase: true,
};
const seeder = new Seeder(config);