MongoDB database migration and seeding tool for Node.js (v2.1.1, stable). Provides both programmatic API and CLI for applying schema changes and seed data. Differentiates with support for multiple databases, collection-specific migrations, and force migration options. Ship TypeScript declarations. Alternative to migrate-mongo with simpler configuration.
npm install mongoverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to MongoDB and applies all migration and seed scripts from the specPath directory.
Update imports to use { apply } from 'mongover'.Verify database folder names in specPath match the 'dbs' array entries.
Set seedOnly: false to run migrations before seeding.
Upgrade Node.js to version 10 or later.
Use import { apply } from 'mongover'; or const { apply } = require('mongover');Include username/password in uri, e.g., mongodb://user:pass@host:27017/?authSource=admin
Ensure the specPath folder exists (create with 'mongover init') or provide absolute path.