# MikroORM

[BASE product page](<https://base.akulich.dev/en/library/mikroorm/>) · [Resource](<https://github.com/mikro-orm/mikro-orm>)

ID: mikroorm · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A TypeScript ORM with an identity map and unit of work: it manages changes to related entities and SQL schema migrations\.

## Type

Database / data tool

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/mikroorm/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/mikroorm/#resource-access>)

Code and local use under MIT\.

## [Paid features and costs](<https://base.akulich.dev/en/library/mikroorm/#resource-access>)

Compute, your own hosting, and external services are paid for separately if selected\.

## [Access and limitations](<https://base.akulich.dev/en/library/mikroorm/#resource-access>)

Code and local use under MIT\. Compute, your own hosting, and external services are paid for separately if selected\.

## [Use cases](<https://base.akulich.dev/en/library/mikroorm/#resource-tasks>)

- Save related entities through a unit of work
- Change related objects and check persistence through the unit of work

## Category IDs

- backend

## Subcategory IDs

- backend\.databases

## Tags

- MikroORM
- database
- Development

## Also known as

- mikro\-orm/mikro\-orm
- mikro\-orm
- typescript\-orm
- nodejs\-orm

## [Selection purpose](<https://base.akulich.dev/en/library/mikroorm/#resource-selection>)

Save related entities through a unit of work

## [Choose this when](<https://base.akulich.dev/en/library/mikroorm/#resource-selection>)

- Save related entities through a unit of work
- Change related objects and check persistence through the unit of work

## [Requirements](<https://base.akulich.dev/en/library/mikroorm/#resource-selection>)

- The required database driver; @mikro\-orm/core plus the CLI/migrations/generator packages in use\.

## [Limitations](<https://base.akulich.dev/en/library/mikroorm/#resource-selection>)

- 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\.

## [Questions before use](<https://base.akulich.dev/en/library/mikroorm/#resource-faq>)

### 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\.

## Sources for the selection guide

- [https://github\.com/mikro\-orm/mikro\-orm](<https://github.com/mikro-orm/mikro-orm>)
- [https://raw\.githubusercontent\.com/mikro\-orm/mikro\-orm/HEAD/README\.md](<https://raw.githubusercontent.com/mikro-orm/mikro-orm/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/mikro\-orm/mikro\-orm/HEAD/LICENSE](<https://raw.githubusercontent.com/mikro-orm/mikro-orm/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)

## [Possible workflow](<https://base.akulich.dev/en/library/mikroorm/#resource-scenario>)

Save related entities through a unit of work\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A schema, test dataset, and queries\.
- A supported database or runtime\.

## Steps

1. Define entities and request context boundaries\.
2. Change related objects and check persistence through the unit of work\.
3. 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\.

## [License](<https://base.akulich.dev/en/library/mikroorm/#resource-license>)

MIT: code; dependencies have separate licenses\.

## License explanations for the specified scope

### 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 terms](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/mikroorm/#resource-sources>)

- [Official source](<https://github.com/mikro-orm/mikro-orm>)
- [Official source](<https://raw.githubusercontent.com/mikro-orm/mikro-orm/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/mikro-orm/mikro-orm/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

Purpose, the current repository license, and the boundaries between code, services, and models were reviewed\. The product was not run or security\-audited\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
