Search

Suggested keywords:
  • Java
  • Docker
  • Git
  • React
  • NextJs
  • Spring boot
  • Laravel

MikroORM - TypeScript ORM for Node

  • Share this:
post-title
MikroORM is a TypeScript ORM for Node.js based on Data Mapper, Unit of work and Identity Map patterns. It supports MongoDB, MySQL, MariaDB, PostgreSQL and SQLite databases. Heavily inspired by Doctrine and Nextras ORM.

It allows handling transactions automatically. When you call em.flush() all computed changes are wrapped inside a database transaction. It uses source code analysis so you do not have to repeat yourself when defining entities. Simply define correct TypeScript types and you are good to go.

Its features include:
  • Clean and Simple Entity Definition
  • Identity Map
  • Entity References
  • Using Entity Constructors
  • Modelling Relationships
  • Collections
  • Unit of Work
  • Transactions
  • Cascading persist and remove
  • Composite and Foreign Keys as Primary Key
  • Filters
  • Using QueryBuilder
  • Preloading Deeply Nested Structures via populate
  • Property Validation
  • Lifecycle Hooks
  • Vanilla JS Support
  • Schema Generator
  • Entity Generator
https://mikro-orm.io
https://github.com/mikro-orm/mikro-orm
License:
Tech: