A flexible MongoDB-based migration utility for managing database schema and data migrations. Current stable version is 6.0.2, supporting Node >=18.0.0. It stores migration state in MongoDB, enabling coordination across multiple instances or developers. Key differentiator: uses MongoDB as the state store rather than local files, ideal for shared databases in multi-instance deployments. Release cadence is periodic, with breaking changes between major versions. Alternatives include db-migrate and migrate-mongo, but data-elevator-mongodb offers a more opinionated, project-structure-based workflow.
npm install data-elevator-mongodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the package, initializes the project structure with 'construct', adds a migration floor, then runs various 'move' commands to apply migrations.
Upgrade to Node 18+ or stay on v5.x if stuck on older Node.
Migrate to using 'levelControllerConfig.connectionUrl' and 'mongodb' driver directly.
Use ESM imports or require the specific subpath: const MongoClientHelpers = require('data-elevator-mongodb/lib/helpers/mongo-client-helpers');Run the construct command from the project root directory.
Implement custom connection pooling by passing a shared MongoDB client in the config.
Ensure the package is installed and use the correct path: require('data-elevator-mongodb/lib/helpers/mongo-client-helpers')Use ESM import: import { construct } from 'data-elevator-mongodb'Install async: npm install async
Check connectionUrl format (e.g., mongodb://user:pass@host:port/db) and ensure the database user has proper permissions.