We use migrate-mongo to handle our
MongoDB database migrations.
Generate a New Migration script
Globally installmigrate-mongo to be able to generate migration scripts.
Structure of MongoDB Migration
Each migration script must include anup and down function that are included in the default exports.
migrations/20201106045436-name-of-migration.js