ArangoDb migration tool that applies migrations in transaction-safe manner, with support for before/after hooks and dry-run. Current stable version is 2.0.0. It uses arangojs v7.8.0+ and provides TypeScript types. Key differentiators: runs whole migration within a single ArangoDB transaction, auto-creates collections, and includes step-based upserts for fine-grained control. Release cadence is irregular, published 2022.
npm install arango-migrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows typical project setup: config file with dotenv, migration file example with step function, and CLI command.
Update package.json to include \"type\": \"module\" or use .mjs extension for config and migration files.
Install arangojs >=7.8.0 with: npm install arangojs@^7.8.0
Change module.exports = {} to export default {} in config file.Always wrap database writes in step() within the up/down functions.
Only use --no-history for testing or one-off scripts; prefer normal operation.
Use import syntax in config file and ensure Node >=12, or rename to .cjs and set \"type\": \"module\" appropriately.
Ensure migration uses export default and up/down have two parameters: async up(db, step) {}Set autoCreateNewCollections to true or manually create the collection before running migrations.
Wrap write operations with step() as required by the package's transactional model.