📄️ Identity Map
MikroORM uses identity map in background, so we will always get the same instance of one entity.
📄️ Entity References
Every single entity relation is mapped to an entity reference. Reference is an entity that has
OneToMany and ManyToMany properties are stored in a Collection wrapper.
📄️ 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: