A Node.js library for managing data migrations on Neo4j graph databases, inspired by Django South. Version 1.2.2 supports Neo4j 3; for Neo4j 4 use version 2.x. Provides a CLI (`neo4j-data-migrate`) and programmatic API. Key differentiators: simple file-based migration scripts, automatic tracking via `__dm` nodes, and zero external dependencies beyond the Neo4j driver. Maintenance mode as Neo4j 3 is legacy.
npm install neo4j-data-migrationsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Complete setup and usage of neo4j-data-migrations with a sample migration file.
Upgrade to version 2.x if using Neo4j 4 or later.
Check future changelog for configuration API changes.
Always include all three properties in each migration file.
Always call `session.close()` after running queries, or use driver.session() with a try-finally block.
Avoid using `__dm` label in your own graph.
Check idempotency of forward and backward functions.
Use sequential prefixes without gaps (0001, 0002, ...).
Run `npm install neo4j-data-migrations` and use `import Migrate from 'neo4j-data-migrations'`
Ensure migration file exports `module.exports = { name: '...', forward: async (driver) => {...}, backward: async (driver) => {...} }`Update `datamigrations/configuration.js` with correct `connection.user` and `connection.password`
Create a new session per operation: `const session = driver.session();` and close after use
Install peer dependency: `npm install neo4j-driver`