Wrapper around migrate-mongo that allows running database migrations against multiple MongoDB databases or clusters simultaneously. Version 1.0.2 requires Node >=8 and peer dependency on mongodb driver ^4.4.1 || ^5.0.0 || ^6.0.0. It simplifies scenarios with sharded clusters, multi-tenant setups, or separate environments needing synchronized schema changes. Supports all migrate-mongo CLI commands (up, down, status, create) with a --config flag pointing to a JSON array of per-database configurations. Release cadence is low; only a few versions published.
npm install migrate-mongo-multiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define multiple database configurations and run 'up' migrations on all of them.
Ensure collection names are unique or use different databases to avoid changelog collisions.
Upgrade Node.js to version 8 or higher.
Install migrate-mongo: npm install migrate-mongo
Wrap config in an array: migrate([config], 'up');