MikroORM
Database / data tool · Free
A TypeScript ORM with an identity map and unit of work: it manages changes to related entities and SQL schema migrations.
Also known as: mikro-orm/mikro-orm; mikro-orm; typescript-orm; nodejs-orm

What you can use for free
Code and local use under MIT.
Paid features and costs
Compute, your own hosting, and external services are paid for separately if selected.
Access and limitations
Code and local use under MIT. Compute, your own hosting, and external services are paid for separately if selected.
Use cases
- Save related entities through a unit of work
- Change related objects and check persistence through the unit of work
Example workflow
A possible workflow; this is not a report of hands-on testing.
Save related entities through a unit of work.
Before you start
- A schema, test dataset, and queries.
- A supported database or runtime.
Steps
- Define entities and request context boundaries.
- Change related objects and check persistence through the unit of work.
- Check schema changes, indexes, and data recovery.
Check your result
- Query results match the reference data.
- Check access permissions, backup recovery, and load before production use.
Choosing MikroORM
Save related entities through a unit of work
Choose this when
- Save related entities through a unit of work
- Change related objects and check persistence through the unit of work
Requirements
- The required database driver; @mikro-orm/core plus the CLI/migrations/generator packages in use.
Things to consider
- Costs and limits of free use: Compute, your own hosting, and external services are paid for separately if selected.
- Terms of use: MIT: code; dependencies have separate licenses.
- The flush statement applies to managed changes and the chosen driver. For web applications, the README recommends RequestContext.create to isolate the identity map between requests.
Frequently asked questions
What can you use for free in MikroORM?
Code and local use under MIT.
What additional costs might arise with MikroORM?
Compute, your own hosting, and external services are paid for separately if selected.
What terms of use matter for MikroORM?
MIT: code; dependencies have separate licenses.
How do you get started with MikroORM?
Define entities and request context boundaries. Change related objects and check persistence through the unit of work. Check schema changes, indexes, and data recovery.
How does MikroORM save entity changes, and which packages are needed for its tools?
Unit of Work tracks managed entities; flush saves accumulated changes in one transaction. Choose a database driver, such as PostgreSQL, MySQL/MariaDB, SQLite/LibSQL, or MongoDB. For CLI, migrations, and entity generator, install @mikro-orm/core explicitly with the required packages. Entities can be defined through defineEntity/setClass, decorators, or EntitySchema.
License
MIT: code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- MikroORM
- database
- Development