📄️ Identity Map
MikroORM uses identity map in background, so we will always get the same instance of one entity.
OneToMany and ManyToMany properties are stored in a Collection wrapper.
📄️ Type-Safe Relations
Entity relations are mapped to entity references - instances of the entity that have at least the primary key available. This reference is stored in identity map, so you will get the same object reference when fetching the same document from database.
📄️ Entity Repository
Entity Repositories are thin layers on top of EntityManager. They act as an
📄️ Transactions and Concurrency
Starting v3.4, transactions are also supported in MongoDB driver.
📄️ Inheritance Mapping
From v4.2, cascade merging is no longer configurable (and is kept enabled for all relations).
MikroORM has the ability to pre-define filter criteria and attach those filters
Under the hood, MikroORM uses ts-morph to read
📄️ Using Query Builder
or EntityRepository to have access to createQueryBuilder() method.
📄️ Result cache
MikroORM has simple result caching mechanism. It works with those methods of
For development purposes it might come handy to enable logging and debug mode: