Documentation page llms.txt Blog Archive Authors Handling Transactions and Concurrency in MikroORM Introducing MikroORM, TypeScript data-mapper ORM with Identity Map MikroORM 3: Knex.js, CLI, Schema Updates, Entity Generator and more… MikroORM 4.1: Let’s talk about performance MikroORM 4: Filling the Gaps MikroORM 5.8 released MikroORM 5: Stricter, Safer, Smarter MikroORM 6.2: Say hello to SQL Server (and libSQL) MikroORM 6.3: Schema first? MikroORM 6.4 MikroORM 6.5 MikroORM 6.6 MikroORM 6: Polished MikroORM 7.1: Loaded MikroORM 7: Unchained Blog Tags 15 posts tagged with "javascript" 15 posts tagged with "javascript" 15 posts tagged with "node" 15 posts tagged with "node" One post tagged with "oop" 14 posts tagged with "sql" 14 posts tagged with "sql" 15 posts tagged with "typescript" 15 posts tagged with "typescript" Changelog Search the documentation MikroORM documentation versions API @mikro-orm/cli configure Settings @mikro-orm/core abstractAbstractNamingStrategy ArrayType <T> abstractBaseEntity BigIntType <Mode> BlobType BooleanType ChangeSet <T> CharacterType CheckConstraintViolationException Collection <T, O> Configuration <D, EM> abstractConnection ConnectionException ConstraintViolationException Cursor <Entity, Hint, Fields, Excludes, IncludeCount> CursorError <T> abstractDatabaseDriver <C> DatabaseObjectExistsException DatabaseObjectNotFoundException DateTimeType DateType DeadlockException DecimalType <Mode> DefaultLogger DoubleType DriverException EntityAssigner EntityCaseNamingStrategy EntityLoader EntityManager <Driver> EntityMetadata <Entity, Class> EntityRepository <Entity> EntitySchema <Entity, Base, Class> EntitySerializer EntityTransformer EnumArrayType <T> EnumType EventManager ExceptionConverter FloatType ForeignKeyConstraintViolationException GeneratedCacheAdapter abstractHydrator IntegerType IntervalType InvalidFieldNameException JsonType LockWaitTimeoutException MediumIntType MemoryCacheAdapter MetadataDiscovery MetadataError <T> MetadataProvider MetadataStorage MikroORM <Driver, EM, Entities> MongoNamingStrategy NonUniqueFieldNameException NotFoundError <T> NotNullConstraintViolationException NullCacheAdapter NullHighlighter OptimisticLockError <T> abstractPlainObject abstractPlatform PolymorphicRef RawQueryFragment <Alias> ReadOnlyException Reference <T> RequestContext ScalarReference <Value> SerializationContext <T> ServerException SimpleLogger SmallIntType StringType SyntaxErrorException TableExistsException TableNotFoundException TextType TimeType TinyIntType TransactionContext TransactionEventBroadcaster TransactionManager TransactionStateError abstractType <JSType, DBType> Uint8ArrayType UnderscoreNamingStrategy UniqueConstraintViolationException UnitOfWork UnknownType Utils UuidType ValidationError <T> Cascade ChangeSetType DataloaderType DeferMode EventType FlushMode GroupOperator IsolationLevel LoadStrategy LockMode constNodeState PopulateHint PopulatePath QueryFlag QueryOperator QueryOrder QueryOrderNumeric ReferenceKind TransactionPropagation assign compareArrays compareBooleans compareBuffers compareObjects createSqlFunction defineConfig defineEntity equals isRaw parseJsonSafe quote raw ref rel serialize sql wrap AssignOptions <Convert> CacheAdapter CheckConstraint <T> ClearDatabaseOptions CollationOptions ConnectionConfig ConnectionOptions CountOptions <T, P> CreateContextOptions CreateOptions <Convert> CreateSchemaOptions DefineEntityHooks <T> DeleteOptions <T> DriverMethodOptions DropSchemaOptions Edge EmbeddableOptions <Owner> EmbeddedOptions <Owner, Target> EmptyOptions EnsureDatabaseOptions EntityLoaderOptions <Entity, Fields, Excludes> EntityMetadataWithProperties <TName, TTableName, TProperties, TPK, TBase, TRepository, TForceObject> EntityProperty <Owner, Target> EntitySchemaWithMeta <TName, TTableName, TEntity, TBase, TProperties, TClass> EnumOptions <T> EventArgs <T> EventSubscriber <T> FindAllOptions <T, P, F, E> FindByCursorOptions <T, P, F, E, I> FindOneOptions <T, P, F, E> FindOneOrFailOptions <T, P, F, E> FindOptions <Entity, Hint, Fields, Excludes> FlatQueryOrderMap FlushEventArgs ForkOptions GenerateOptions GetReferenceOptions Highlighter IConfiguration IDatabaseDriver <C> IEntityGenerator IMigrationGenerator IMigrator IndexColumnOptions IndexOptions <T, H> InitCollectionOptions <T, P, F, E> ISchemaGenerator ISeedManager IWrappedEntity <Entity> LoadCountOptions <T> LoadedCollection <T> LoadedReference <T> LoadHint <Entity, Hint, Fields, Excludes> LoadReferenceOptions <T, P, F, E> LoadReferenceOrFailOptions <T, P, F, E> LockOptions LogContext Logger LoggerOptions ManyToManyOptions <Owner, Target> ManyToOneOptions <Owner, Target> MatchingOptions <T, P> MergeOptions MetadataDiscoveryOptions MigrationDiff MigrationObject NamingStrategy NativeDeleteOptions <T> NativeInsertUpdateManyOptions <T> NativeInsertUpdateOptions <T> Node OneToManyOptions <Owner, Target> OneToOneOptions <Owner, Target> Options <Driver, EM, Entities> PoolConfig PrimaryKeyOptions <T> PropertyChain <Value, Options> PropertyOptions <Owner> QueryResult <T> ReferenceOptions <Owner, Target> RefreshDatabaseOptions RegisterOptions SeederObject SeederOptions SerializedPrimaryKeyOptions <T> SerializeOptions <T, P, E> SimpleColumnMeta StreamOptions <Entity, Populate, Fields, Exclude> Subquery SyncCacheAdapter TransactionEventArgs TransactionOptions TransformContext TypeConfig UniqueOptions <T, H> UpdateOptions <T> UpdateSchemaOptions <DatabaseSchema> UpsertManyOptions <Entity, Fields> UpsertOptions <Entity, Fields> DefineConfig Hidden Opt RequiredNullable @mikro-orm/entity-generator EntityGenerator @mikro-orm/libsql LibSqlConnection LibSqlDriver MikroORM <EM, Entities> defineConfig @mikro-orm/mariadb MariaDbDriver MariaDbPlatform MariaDbSchemaHelper MikroORM <EM, Entities> defineConfig @mikro-orm/migrations JSMigrationGenerator abstractMigration abstractMigrationGenerator MigrationRunner MigrationStorage Migrator TSMigrationGenerator @mikro-orm/mongodb EntityManager <Driver> EntityRepository <T> MikroORM <EM, Entities> MongoConnection MongoDriver MongoPlatform MongoSchemaGenerator publicObjectId defineConfig EnsureIndexesOptions MongoCountOptions MongoCreateSchemaOptions MongoFindOptions <T> MongoQueryOptions @mikro-orm/mssql MikroORM <EM, Entities> MsSqlConnection MsSqlDriver MsSqlPlatform MsSqlSchemaHelper UnicodeString UnicodeStringType defineConfig @mikro-orm/mysql MikroORM <EM, Entities> MySqlConnection MySqlDriver MySqlPlatform defineConfig @mikro-orm/oracledb MikroORM <EM, Entities> OracleConnection OracleDriver OracleExceptionConverter OraclePlatform OracleQueryBuilder <Entity, RootAlias, Hint, Context> OracleSchemaGenerator OracleSchemaHelper defineConfig @mikro-orm/postgresql EntityManager <Driver> MikroORM <EM, Entities> PostgreSqlConnection PostgreSqlDriver PostgreSqlPlatform defineConfig raw @mikro-orm/reflection TsMorphMetadataProvider @mikro-orm/seeder abstractFactory <TEntity, TInput> abstractSeeder <T> SeedManager @mikro-orm/sql abstractAbstractSqlConnection abstractAbstractSqlDriver <Connection, Platform> abstractAbstractSqlPlatform BaseMySqlPlatform BasePostgreSqlPlatform BaseSqliteConnection EntityManager <Driver> EntityRepository <Entity> FullTextType Kysely <DB> MikroKyselyPlugin MySqlSchemaHelper NodeSqliteDialect OracleDialect PostgreSqlSchemaHelper QueryBuilder <Entity, RootAlias, Hint, Context, RawAliases, Fields, CTEs> SchemaComparator abstractSchemaHelper SqliteDriver SqlitePlatform SqliteSchemaHelper SqlSchemaGenerator JoinType QueryType raw Alias <T> CheckDef <T> Column ColumnDifference CountQueryBuilder <Entity> CteOptions DatabaseView DeleteQueryBuilder <T, RootAlias, Context> ExecuteOptions ForeignKey GetKyselyOptions ICriteriaNode <T> ICriteriaNodeProcessOptions IndexDef InsertQueryBuilder <T, RootAlias, Context> IQueryBuilder <T> JoinOptions MikroKyselyPluginOptions OnConflictClause <T> OracleDialectConfig OraclePool OraclePoolConnection QBStreamOptions RunQueryBuilder <Entity, RootAlias, Context, RawAliases> SchemaDifference SelectQueryBuilder <Entity, RootAlias, Hint, Context, RawAliases, Fields, CTEs> Table TableDifference TableOptions TruncateQueryBuilder <T> UpdateQueryBuilder <T, RootAlias, Context> @mikro-orm/sqlite MikroORM <EM, Entities> SqliteConnection SqliteDriver defineConfig API @mikro-orm/cli configure Settings @mikro-orm/core abstractAbstractNamingStrategy ArrayType <T> abstractBaseEntity BigIntType <Mode> BlobType BooleanType ChangeSet <T> CharacterType CheckConstraintViolationException Collection <T, O> Configuration <D, EM> abstractConnection ConnectionException ConstraintViolationException Cursor <Entity, Hint, Fields, Excludes, IncludeCount> CursorError <T> abstractDatabaseDriver <C> DatabaseObjectExistsException DatabaseObjectNotFoundException DateTimeType DateType DeadlockException DecimalType <Mode> DefaultLogger DoubleType DriverException EntityAssigner EntityCaseNamingStrategy EntityLoader EntityManager <Driver> EntityMetadata <Entity, Class> EntityRepository <Entity> EntitySchema <Entity, Base, Class> EntitySerializer EntityTransformer EnumArrayType <T> EnumType EventManager ExceptionConverter FloatType ForeignKeyConstraintViolationException GeneratedCacheAdapter abstractHydrator IntegerType IntervalType InvalidFieldNameException JsonType abstractLoadableBaseEntity LockWaitTimeoutException MediumIntType MemoryCacheAdapter MetadataDiscovery MetadataError <T> MetadataProvider MetadataStorage MikroORM <Driver, EM, Entities> MongoNamingStrategy NonUniqueFieldNameException NotFoundError <T> NotNullConstraintViolationException NullCacheAdapter NullHighlighter OptimisticLockError <T> abstractPlainObject abstractPlatform PolymorphicRef RawQueryFragment <Alias> ReadOnlyException Reference <T> RequestContext Routine <TConfig, TArgs, TReturn> ScalarReference <Value> SerializationContext <T> ServerException SimpleLogger SmallIntType StringType SyntaxErrorException TableExistsException TableNotFoundException TextType TimeType TinyIntType TransactionContext TransactionEventBroadcaster TransactionManager TransactionStateError abstractType <JSType, DBType> Uint8ArrayType UnderscoreNamingStrategy UniqueConstraintViolationException UnitOfWork UnknownType Utils UuidType ValidationError <T> Cascade ChangeSetType DataloaderType DeferMode EventType FlushMode GroupOperator IsolationLevel LoadStrategy LockMode constNodeState PopulateHint PopulatePath QueryFlag QueryOperator QueryOrder QueryOrderNumeric ReferenceKind TransactionPropagation assign compareArrays compareBooleans compareBuffers compareObjects createSqlFunction defineConfig defineEntity equals isRaw Loadable normalizePartitionNameForComparison parseJsonSafe quote raw ref rel serialize splitCommaSeparatedIdentifiers sql unref wrap AbortQueryOptions AssignOptions <Convert> CacheAdapter CheckConstraint <T> ClearDatabaseOptions CollationOptions ConnectionConfig ConnectionOptions CountByOptions <T> CountOptions <T, P> CreateContextOptions CreateOptions <Convert> CreateSchemaOptions DefineEntityHooks <T> DeleteOptions <T> DriverMethodOptions DropSchemaOptions Edge EmbeddableOptions <Owner> EmbeddedOptions <Owner, Target> EmptyOptions EnsureDatabaseOptions EntityLoaderOptions <Entity, Fields, Excludes> EntityMetadataWithProperties <TName, TTableName, TProperties, TPK, TBase, TRepository, TForceObject, TDiscriminatorColumn, TDiscriminatorValue, TBaseDiscriminatorColumn> EntityPartition <E> EntityProperty <Owner, Target> EntitySchemaWithMeta <TName, TTableName, TEntity, TBase, TProperties, TClass, TDiscriminatorColumn> EnumOptions <T> EventArgs <T> EventSubscriber <T> FindAllOptions <T, P, F, E> FindByCursorOptions <T, P, F, E, I> FindOneOptions <T, P, F, E> FindOneOrFailOptions <T, P, F, E> FindOptions <Entity, Hint, Fields, Excludes> FlatQueryOrderMap FlushEventArgs ForkOptions GenerateOptions GetReferenceOptions Highlighter IConfiguration IDatabaseDriver <C> IEntityGenerator IMigrationGenerator IMigrator IndexColumnOptions IndexOptions <T, H> InitCollectionOptions <T, P, F, E> ISchemaGenerator ISeedManager IWrappedEntity <Entity> LoadableEntity LoadCountOptions <T> LoadedCollection <T> LoadedReference <T> LoadHint <Entity, Hint, Fields, Excludes> LoadReferenceOptions <T, P, F, E> LoadReferenceOrFailOptions <T, P, F, E> LockOptions LogContext Logger LoggerOptions ManyToManyOptions <Owner, Target> ManyToOneOptions <Owner, Target> MatchingOptions <T, P> MergeOptions MetadataDiscoveryOptions MigrationDiff MigrationObject NamingStrategy NativeDeleteOptions <T> NativeInsertUpdateManyOptions <T> NativeInsertUpdateOptions <T> Node OneToManyOptions <Owner, Target> OneToOneOptions <Owner, Target> Options <Driver, EM, Entities> PoolConfig PrimaryKeyOptions <T> PropertyChain <Value, Options> PropertyOptions <Owner> QueryResult <T> ReferenceOptions <Owner, Target> RefreshDatabaseOptions RegisterOptions RoutineConfig <T> RoutineParamConfig SeederObject SeederOptions SerializedPrimaryKeyOptions <T> SerializeOptions <T, P, E, F> SimpleColumnMeta StreamOptions <Entity, Populate, Fields, Exclude> Subquery SyncCacheAdapter TransactionEventArgs TransactionOptions TransformContext TriggerDef <T> TypeConfig UniqueOptions <T, H> UpdateOptions <T> UpdateSchemaOptions <DatabaseSchema> UpsertManyOptions <Entity, Fields> UpsertOptions <Entity, Fields> DefineConfig Hidden LazyRef Opt RequiredNullable @mikro-orm/entity-generator EntityGenerator RoutineSourceFile @mikro-orm/libsql LibSqlConnection LibSqlDriver MikroORM <EM, Entities> defineConfig @mikro-orm/mariadb MariaDbDriver MariaDbPlatform MariaDbSchemaHelper MikroORM <EM, Entities> defineConfig @mikro-orm/migrations JSMigrationGenerator abstractMigration abstractMigrationGenerator MigrationRunner MigrationStorage Migrator TSMigrationGenerator @mikro-orm/mongodb EntityManager <Driver> EntityRepository <T> MikroORM <EM, Entities> MongoConnection MongoDriver MongoPlatform MongoSchemaGenerator publicObjectId defineConfig EnsureIndexesOptions MongoCountOptions MongoCreateSchemaOptions MongoFindOptions <T> MongoQueryOptions @mikro-orm/mssql MikroORM <EM, Entities> MsSqlConnection MsSqlDriver MsSqlPlatform MsSqlSchemaHelper UnicodeString UnicodeStringType defineConfig @mikro-orm/mysql MikroORM <EM, Entities> MySqlConnection MySqlDriver MySqlPlatform defineConfig @mikro-orm/oracledb MikroORM <EM, Entities> OracleConnection OracleDriver OracleExceptionConverter OraclePlatform OracleQueryBuilder <Entity, RootAlias, Hint, Context> OracleSchemaGenerator OracleSchemaHelper defineConfig @mikro-orm/pglite MikroORM <EM, Entities> PgliteConnection PgliteDriver PglitePlatform PgliteSchemaHelper defineConfig raw @mikro-orm/postgresql EntityManager <Driver> MikroORM <EM, Entities> PostgreSqlConnection PostgreSqlDriver PostgreSqlPlatform defineConfig raw @mikro-orm/reflection TsMorphMetadataProvider @mikro-orm/seeder abstractFactory <TEntity, TInput> abstractSeeder <T> SeedManager @mikro-orm/sql abstractAbstractSqlConnection abstractAbstractSqlDriver <Connection, Platform> abstractAbstractSqlPlatform BaseMySqlPlatform BasePostgreSqlEntityManager <Driver> BasePostgreSqlPlatform BaseSqliteConnection EntityManager <Driver> EntityRepository <Entity> FullTextType Kysely <DB> MikroKyselyPlugin MikroORM <D, EM, Entities> MySqlSchemaHelper NodeSqliteDialect OracleDialect PostgreSqlSchemaHelper QueryBuilder <Entity, RootAlias, Hint, Context, RawAliases, Fields, CTEs> SchemaComparator abstractSchemaHelper SqliteDriver SqlitePlatform SqliteSchemaHelper SqlSchemaGenerator JoinType QueryType createPostgreSqlTypeParsers defineConfig raw stripStatementNewlines Alias <T> CheckDef <T> Column ColumnDifference CountQueryBuilder <Entity> CteOptions DatabaseView DeleteQueryBuilder <T, RootAlias, Context> EmExecuteOptions ExecuteOptions ForeignKey GetKyselyOptions ICriteriaNode <T> ICriteriaNodeProcessOptions IndexDef InsertQueryBuilder <T, RootAlias, Context> IQueryBuilder <T> JoinOptions MikroKyselyPluginOptions OnConflictClause <T> OracleDialectConfig OraclePool OraclePoolConnection QBStreamOptions RunQueryBuilder <Entity, RootAlias, Context, RawAliases> SchemaDifference SelectQueryBuilder <Entity, RootAlias, Hint, Context, RawAliases, Fields, CTEs> SqlRoutineDef SqlRoutineParamDef SqlTriggerDef Table TableDifference TableOptions TablePartition TablePartitioning TruncateQueryBuilder <T> UpdateQueryBuilder <T, RootAlias, Context> @mikro-orm/sqlite MikroORM <EM, Entities> SqliteConnection SqliteDriver defineConfig Advanced Architecture Overview Result cache Canary & dev builds Cascading persist, merge and remove Collections Composite and Foreign Keys as Primary Key Configuration Core Concepts Creating Custom Driver Custom Types Dataloaders Decorators Reference Defining Entities via defineEntity Defining Entities Deployment Separating Concerns using Embeddables Using Entity Constructors Entity Generator Working with Entity Manager Events and Lifecycle Hooks Example Integrations Filters Folder-based Discovery Getting Started Guide Chapter 4: Advanced Chapter 1: First Entity Chapter 3: Project Setup Chapter 2: Relationships Chapter 5: Type-safety Identity Map and Request Context Indexes and Unique Constraints Inheritance Mapping Integrations JSON Properties Using Kysely Relationship Loading Strategies Logging Materialized Views Metadata Cache Metadata Providers Migrations Modeling Using Multiple Schemas Naming Strategy Populating relations Propagation Property Validation Using Query Builder Query cancellation Query Conditions Querying Quick Start Using raw SQL query fragments Read Replica Connections Recipes Reference Modeling Entity Relationships Entity Repository Schema & Database Schema First Guide Schema Generator Seeding Serializing Stored Routines Streaming Transactional Outbox Pattern Transactions and Concurrency Type-Safe Relations Unit of Work and Transactions Upgrading Upgrading from v2 to v3 Upgrading from v3 to v4 Upgrading from v4 to v5 Upgrading from v5 to v6 Upgrading from v6 to v7 Using MikroORM with AdminJS Using MikroORM with AdonisJS Usage with CockroachDB Usage with Jest Usage with JavaScript Usage with MongoDB Using MikroORM with NestJS framework Using MikroORM with Next.js Usage with PGlite Usage with SQL drivers Usage with SQLite Usage with transpilers Using native BigInt PKs (MySQL and PostgreSQL) Using Decorators View Entities Virtual Entities The wrap() Helper
llms.txt blog
Blog Archive Authors Handling Transactions and Concurrency in MikroORM Introducing MikroORM, TypeScript data-mapper ORM with Identity Map MikroORM 3: Knex.js, CLI, Schema Updates, Entity Generator and more… MikroORM 4.1: Let’s talk about performance MikroORM 4: Filling the Gaps MikroORM 5.8 released MikroORM 5: Stricter, Safer, Smarter MikroORM 6.2: Say hello to SQL Server (and libSQL) MikroORM 6.3: Schema first? MikroORM 6.4 MikroORM 6.5 MikroORM 6.6 MikroORM 6: Polished MikroORM 7.1: Loaded MikroORM 7: Unchained Blog Tags 15 posts tagged with "javascript" 15 posts tagged with "javascript" 15 posts tagged with "node" 15 posts tagged with "node" One post tagged with "oop" 14 posts tagged with "sql" 14 posts tagged with "sql" 15 posts tagged with "typescript" 15 posts tagged with "typescript" search
Search the documentation versions
MikroORM documentation versions api
API @mikro-orm/cli configure Settings @mikro-orm/core abstractAbstractNamingStrategy ArrayType <T> abstractBaseEntity BigIntType <Mode> BlobType BooleanType ChangeSet <T> CharacterType CheckConstraintViolationException Collection <T, O> Configuration <D, EM> abstractConnection ConnectionException ConstraintViolationException Cursor <Entity, Hint, Fields, Excludes, IncludeCount> CursorError <T> abstractDatabaseDriver <C> DatabaseObjectExistsException DatabaseObjectNotFoundException DateTimeType DateType DeadlockException DecimalType <Mode> DefaultLogger DoubleType DriverException EntityAssigner EntityCaseNamingStrategy EntityLoader EntityManager <Driver> EntityMetadata <Entity, Class> EntityRepository <Entity> EntitySchema <Entity, Base, Class> EntitySerializer EntityTransformer EnumArrayType <T> EnumType EventManager ExceptionConverter FloatType ForeignKeyConstraintViolationException GeneratedCacheAdapter abstractHydrator IntegerType IntervalType InvalidFieldNameException JsonType LockWaitTimeoutException MediumIntType MemoryCacheAdapter MetadataDiscovery MetadataError <T> MetadataProvider MetadataStorage MikroORM <Driver, EM, Entities> MongoNamingStrategy NonUniqueFieldNameException NotFoundError <T> NotNullConstraintViolationException NullCacheAdapter NullHighlighter OptimisticLockError <T> abstractPlainObject abstractPlatform PolymorphicRef RawQueryFragment <Alias> ReadOnlyException Reference <T> RequestContext ScalarReference <Value> SerializationContext <T> ServerException SimpleLogger SmallIntType StringType SyntaxErrorException TableExistsException TableNotFoundException TextType TimeType TinyIntType TransactionContext TransactionEventBroadcaster TransactionManager TransactionStateError abstractType <JSType, DBType> Uint8ArrayType UnderscoreNamingStrategy UniqueConstraintViolationException UnitOfWork UnknownType Utils UuidType ValidationError <T> Cascade ChangeSetType DataloaderType DeferMode EventType FlushMode GroupOperator IsolationLevel LoadStrategy LockMode constNodeState PopulateHint PopulatePath QueryFlag QueryOperator QueryOrder QueryOrderNumeric ReferenceKind TransactionPropagation assign compareArrays compareBooleans compareBuffers compareObjects createSqlFunction defineConfig defineEntity equals isRaw parseJsonSafe quote raw ref rel serialize sql wrap AssignOptions <Convert> CacheAdapter CheckConstraint <T> ClearDatabaseOptions CollationOptions ConnectionConfig ConnectionOptions CountOptions <T, P> CreateContextOptions CreateOptions <Convert> CreateSchemaOptions DefineEntityHooks <T> DeleteOptions <T> DriverMethodOptions DropSchemaOptions Edge EmbeddableOptions <Owner> EmbeddedOptions <Owner, Target> EmptyOptions EnsureDatabaseOptions EntityLoaderOptions <Entity, Fields, Excludes> EntityMetadataWithProperties <TName, TTableName, TProperties, TPK, TBase, TRepository, TForceObject> EntityProperty <Owner, Target> EntitySchemaWithMeta <TName, TTableName, TEntity, TBase, TProperties, TClass> EnumOptions <T> EventArgs <T> EventSubscriber <T> FindAllOptions <T, P, F, E> FindByCursorOptions <T, P, F, E, I> FindOneOptions <T, P, F, E> FindOneOrFailOptions <T, P, F, E> FindOptions <Entity, Hint, Fields, Excludes> FlatQueryOrderMap FlushEventArgs ForkOptions GenerateOptions GetReferenceOptions Highlighter IConfiguration IDatabaseDriver <C> IEntityGenerator IMigrationGenerator IMigrator IndexColumnOptions IndexOptions <T, H> InitCollectionOptions <T, P, F, E> ISchemaGenerator ISeedManager IWrappedEntity <Entity> LoadCountOptions <T> LoadedCollection <T> LoadedReference <T> LoadHint <Entity, Hint, Fields, Excludes> LoadReferenceOptions <T, P, F, E> LoadReferenceOrFailOptions <T, P, F, E> LockOptions LogContext Logger LoggerOptions ManyToManyOptions <Owner, Target> ManyToOneOptions <Owner, Target> MatchingOptions <T, P> MergeOptions MetadataDiscoveryOptions MigrationDiff MigrationObject NamingStrategy NativeDeleteOptions <T> NativeInsertUpdateManyOptions <T> NativeInsertUpdateOptions <T> Node OneToManyOptions <Owner, Target> OneToOneOptions <Owner, Target> Options <Driver, EM, Entities> PoolConfig PrimaryKeyOptions <T> PropertyChain <Value, Options> PropertyOptions <Owner> QueryResult <T> ReferenceOptions <Owner, Target> RefreshDatabaseOptions RegisterOptions SeederObject SeederOptions SerializedPrimaryKeyOptions <T> SerializeOptions <T, P, E> SimpleColumnMeta StreamOptions <Entity, Populate, Fields, Exclude> Subquery SyncCacheAdapter TransactionEventArgs TransactionOptions TransformContext TypeConfig UniqueOptions <T, H> UpdateOptions <T> UpdateSchemaOptions <DatabaseSchema> UpsertManyOptions <Entity, Fields> UpsertOptions <Entity, Fields> DefineConfig Hidden Opt RequiredNullable @mikro-orm/entity-generator EntityGenerator @mikro-orm/libsql LibSqlConnection LibSqlDriver MikroORM <EM, Entities> defineConfig @mikro-orm/mariadb MariaDbDriver MariaDbPlatform MariaDbSchemaHelper MikroORM <EM, Entities> defineConfig @mikro-orm/migrations JSMigrationGenerator abstractMigration abstractMigrationGenerator MigrationRunner MigrationStorage Migrator TSMigrationGenerator @mikro-orm/mongodb EntityManager <Driver> EntityRepository <T> MikroORM <EM, Entities> MongoConnection MongoDriver MongoPlatform MongoSchemaGenerator publicObjectId defineConfig EnsureIndexesOptions MongoCountOptions MongoCreateSchemaOptions MongoFindOptions <T> MongoQueryOptions @mikro-orm/mssql MikroORM <EM, Entities> MsSqlConnection MsSqlDriver MsSqlPlatform MsSqlSchemaHelper UnicodeString UnicodeStringType defineConfig @mikro-orm/mysql MikroORM <EM, Entities> MySqlConnection MySqlDriver MySqlPlatform defineConfig @mikro-orm/oracledb MikroORM <EM, Entities> OracleConnection OracleDriver OracleExceptionConverter OraclePlatform OracleQueryBuilder <Entity, RootAlias, Hint, Context> OracleSchemaGenerator OracleSchemaHelper defineConfig @mikro-orm/postgresql EntityManager <Driver> MikroORM <EM, Entities> PostgreSqlConnection PostgreSqlDriver PostgreSqlPlatform defineConfig raw @mikro-orm/reflection TsMorphMetadataProvider @mikro-orm/seeder abstractFactory <TEntity, TInput> abstractSeeder <T> SeedManager @mikro-orm/sql abstractAbstractSqlConnection abstractAbstractSqlDriver <Connection, Platform> abstractAbstractSqlPlatform BaseMySqlPlatform BasePostgreSqlPlatform BaseSqliteConnection EntityManager <Driver> EntityRepository <Entity> FullTextType Kysely <DB> MikroKyselyPlugin MySqlSchemaHelper NodeSqliteDialect OracleDialect PostgreSqlSchemaHelper QueryBuilder <Entity, RootAlias, Hint, Context, RawAliases, Fields, CTEs> SchemaComparator abstractSchemaHelper SqliteDriver SqlitePlatform SqliteSchemaHelper SqlSchemaGenerator JoinType QueryType raw Alias <T> CheckDef <T> Column ColumnDifference CountQueryBuilder <Entity> CteOptions DatabaseView DeleteQueryBuilder <T, RootAlias, Context> ExecuteOptions ForeignKey GetKyselyOptions ICriteriaNode <T> ICriteriaNodeProcessOptions IndexDef InsertQueryBuilder <T, RootAlias, Context> IQueryBuilder <T> JoinOptions MikroKyselyPluginOptions OnConflictClause <T> OracleDialectConfig OraclePool OraclePoolConnection QBStreamOptions RunQueryBuilder <Entity, RootAlias, Context, RawAliases> SchemaDifference SelectQueryBuilder <Entity, RootAlias, Hint, Context, RawAliases, Fields, CTEs> Table TableDifference TableOptions TruncateQueryBuilder <T> UpdateQueryBuilder <T, RootAlias, Context> @mikro-orm/sqlite MikroORM <EM, Entities> SqliteConnection SqliteDriver defineConfig API @mikro-orm/cli configure Settings @mikro-orm/core abstractAbstractNamingStrategy ArrayType <T> abstractBaseEntity BigIntType <Mode> BlobType BooleanType ChangeSet <T> CharacterType CheckConstraintViolationException Collection <T, O> Configuration <D, EM> abstractConnection ConnectionException ConstraintViolationException Cursor <Entity, Hint, Fields, Excludes, IncludeCount> CursorError <T> abstractDatabaseDriver <C> DatabaseObjectExistsException DatabaseObjectNotFoundException DateTimeType DateType DeadlockException DecimalType <Mode> DefaultLogger DoubleType DriverException EntityAssigner EntityCaseNamingStrategy EntityLoader EntityManager <Driver> EntityMetadata <Entity, Class> EntityRepository <Entity> EntitySchema <Entity, Base, Class> EntitySerializer EntityTransformer EnumArrayType <T> EnumType EventManager ExceptionConverter FloatType ForeignKeyConstraintViolationException GeneratedCacheAdapter abstractHydrator IntegerType IntervalType InvalidFieldNameException JsonType abstractLoadableBaseEntity LockWaitTimeoutException MediumIntType MemoryCacheAdapter MetadataDiscovery MetadataError <T> MetadataProvider MetadataStorage MikroORM <Driver, EM, Entities> MongoNamingStrategy NonUniqueFieldNameException NotFoundError <T> NotNullConstraintViolationException NullCacheAdapter NullHighlighter OptimisticLockError <T> abstractPlainObject abstractPlatform PolymorphicRef RawQueryFragment <Alias> ReadOnlyException Reference <T> RequestContext Routine <TConfig, TArgs, TReturn> ScalarReference <Value> SerializationContext <T> ServerException SimpleLogger SmallIntType StringType SyntaxErrorException TableExistsException TableNotFoundException TextType TimeType TinyIntType TransactionContext TransactionEventBroadcaster TransactionManager TransactionStateError abstractType <JSType, DBType> Uint8ArrayType UnderscoreNamingStrategy UniqueConstraintViolationException UnitOfWork UnknownType Utils UuidType ValidationError <T> Cascade ChangeSetType DataloaderType DeferMode EventType FlushMode GroupOperator IsolationLevel LoadStrategy LockMode constNodeState PopulateHint PopulatePath QueryFlag QueryOperator QueryOrder QueryOrderNumeric ReferenceKind TransactionPropagation assign compareArrays compareBooleans compareBuffers compareObjects createSqlFunction defineConfig defineEntity equals isRaw Loadable normalizePartitionNameForComparison parseJsonSafe quote raw ref rel serialize splitCommaSeparatedIdentifiers sql unref wrap AbortQueryOptions AssignOptions <Convert> CacheAdapter CheckConstraint <T> ClearDatabaseOptions CollationOptions ConnectionConfig ConnectionOptions CountByOptions <T> CountOptions <T, P> CreateContextOptions CreateOptions <Convert> CreateSchemaOptions DefineEntityHooks <T> DeleteOptions <T> DriverMethodOptions DropSchemaOptions Edge EmbeddableOptions <Owner> EmbeddedOptions <Owner, Target> EmptyOptions EnsureDatabaseOptions EntityLoaderOptions <Entity, Fields, Excludes> EntityMetadataWithProperties <TName, TTableName, TProperties, TPK, TBase, TRepository, TForceObject, TDiscriminatorColumn, TDiscriminatorValue, TBaseDiscriminatorColumn> EntityPartition <E> EntityProperty <Owner, Target> EntitySchemaWithMeta <TName, TTableName, TEntity, TBase, TProperties, TClass, TDiscriminatorColumn> EnumOptions <T> EventArgs <T> EventSubscriber <T> FindAllOptions <T, P, F, E> FindByCursorOptions <T, P, F, E, I> FindOneOptions <T, P, F, E> FindOneOrFailOptions <T, P, F, E> FindOptions <Entity, Hint, Fields, Excludes> FlatQueryOrderMap FlushEventArgs ForkOptions GenerateOptions GetReferenceOptions Highlighter IConfiguration IDatabaseDriver <C> IEntityGenerator IMigrationGenerator IMigrator IndexColumnOptions IndexOptions <T, H> InitCollectionOptions <T, P, F, E> ISchemaGenerator ISeedManager IWrappedEntity <Entity> LoadableEntity LoadCountOptions <T> LoadedCollection <T> LoadedReference <T> LoadHint <Entity, Hint, Fields, Excludes> LoadReferenceOptions <T, P, F, E> LoadReferenceOrFailOptions <T, P, F, E> LockOptions LogContext Logger LoggerOptions ManyToManyOptions <Owner, Target> ManyToOneOptions <Owner, Target> MatchingOptions <T, P> MergeOptions MetadataDiscoveryOptions MigrationDiff MigrationObject NamingStrategy NativeDeleteOptions <T> NativeInsertUpdateManyOptions <T> NativeInsertUpdateOptions <T> Node OneToManyOptions <Owner, Target> OneToOneOptions <Owner, Target> Options <Driver, EM, Entities> PoolConfig PrimaryKeyOptions <T> PropertyChain <Value, Options> PropertyOptions <Owner> QueryResult <T> ReferenceOptions <Owner, Target> RefreshDatabaseOptions RegisterOptions RoutineConfig <T> RoutineParamConfig SeederObject SeederOptions SerializedPrimaryKeyOptions <T> SerializeOptions <T, P, E, F> SimpleColumnMeta StreamOptions <Entity, Populate, Fields, Exclude> Subquery SyncCacheAdapter TransactionEventArgs TransactionOptions TransformContext TriggerDef <T> TypeConfig UniqueOptions <T, H> UpdateOptions <T> UpdateSchemaOptions <DatabaseSchema> UpsertManyOptions <Entity, Fields> UpsertOptions <Entity, Fields> DefineConfig Hidden LazyRef Opt RequiredNullable @mikro-orm/entity-generator EntityGenerator RoutineSourceFile @mikro-orm/libsql LibSqlConnection LibSqlDriver MikroORM <EM, Entities> defineConfig @mikro-orm/mariadb MariaDbDriver MariaDbPlatform MariaDbSchemaHelper MikroORM <EM, Entities> defineConfig @mikro-orm/migrations JSMigrationGenerator abstractMigration abstractMigrationGenerator MigrationRunner MigrationStorage Migrator TSMigrationGenerator @mikro-orm/mongodb EntityManager <Driver> EntityRepository <T> MikroORM <EM, Entities> MongoConnection MongoDriver MongoPlatform MongoSchemaGenerator publicObjectId defineConfig EnsureIndexesOptions MongoCountOptions MongoCreateSchemaOptions MongoFindOptions <T> MongoQueryOptions @mikro-orm/mssql MikroORM <EM, Entities> MsSqlConnection MsSqlDriver MsSqlPlatform MsSqlSchemaHelper UnicodeString UnicodeStringType defineConfig @mikro-orm/mysql MikroORM <EM, Entities> MySqlConnection MySqlDriver MySqlPlatform defineConfig @mikro-orm/oracledb MikroORM <EM, Entities> OracleConnection OracleDriver OracleExceptionConverter OraclePlatform OracleQueryBuilder <Entity, RootAlias, Hint, Context> OracleSchemaGenerator OracleSchemaHelper defineConfig @mikro-orm/pglite MikroORM <EM, Entities> PgliteConnection PgliteDriver PglitePlatform PgliteSchemaHelper defineConfig raw @mikro-orm/postgresql EntityManager <Driver> MikroORM <EM, Entities> PostgreSqlConnection PostgreSqlDriver PostgreSqlPlatform defineConfig raw @mikro-orm/reflection TsMorphMetadataProvider @mikro-orm/seeder abstractFactory <TEntity, TInput> abstractSeeder <T> SeedManager @mikro-orm/sql abstractAbstractSqlConnection abstractAbstractSqlDriver <Connection, Platform> abstractAbstractSqlPlatform BaseMySqlPlatform BasePostgreSqlEntityManager <Driver> BasePostgreSqlPlatform BaseSqliteConnection EntityManager <Driver> EntityRepository <Entity> FullTextType Kysely <DB> MikroKyselyPlugin MikroORM <D, EM, Entities> MySqlSchemaHelper NodeSqliteDialect OracleDialect PostgreSqlSchemaHelper QueryBuilder <Entity, RootAlias, Hint, Context, RawAliases, Fields, CTEs> SchemaComparator abstractSchemaHelper SqliteDriver SqlitePlatform SqliteSchemaHelper SqlSchemaGenerator JoinType QueryType createPostgreSqlTypeParsers defineConfig raw stripStatementNewlines Alias <T> CheckDef <T> Column ColumnDifference CountQueryBuilder <Entity> CteOptions DatabaseView DeleteQueryBuilder <T, RootAlias, Context> EmExecuteOptions ExecuteOptions ForeignKey GetKyselyOptions ICriteriaNode <T> ICriteriaNodeProcessOptions IndexDef InsertQueryBuilder <T, RootAlias, Context> IQueryBuilder <T> JoinOptions MikroKyselyPluginOptions OnConflictClause <T> OracleDialectConfig OraclePool OraclePoolConnection QBStreamOptions RunQueryBuilder <Entity, RootAlias, Context, RawAliases> SchemaDifference SelectQueryBuilder <Entity, RootAlias, Hint, Context, RawAliases, Fields, CTEs> SqlRoutineDef SqlRoutineParamDef SqlTriggerDef Table TableDifference TableOptions TablePartition TablePartitioning TruncateQueryBuilder <T> UpdateQueryBuilder <T, RootAlias, Context> @mikro-orm/sqlite MikroORM <EM, Entities> SqliteConnection SqliteDriver defineConfig docs
Advanced Architecture Overview Result cache Canary & dev builds Cascading persist, merge and remove Collections Composite and Foreign Keys as Primary Key Configuration Core Concepts Creating Custom Driver Custom Types Dataloaders Decorators Reference Defining Entities via defineEntity Defining Entities Deployment Separating Concerns using Embeddables Using Entity Constructors Entity Generator Working with Entity Manager Events and Lifecycle Hooks Example Integrations Filters Folder-based Discovery Getting Started Guide Chapter 4: Advanced Chapter 1: First Entity Chapter 3: Project Setup Chapter 2: Relationships Chapter 5: Type-safety Identity Map and Request Context Indexes and Unique Constraints Inheritance Mapping Integrations JSON Properties Using Kysely Relationship Loading Strategies Logging Materialized Views Metadata Cache Metadata Providers Migrations Modeling Using Multiple Schemas Naming Strategy Populating relations Propagation Property Validation Using Query Builder Query cancellation Query Conditions Querying Quick Start Using raw SQL query fragments Read Replica Connections Recipes Reference Modeling Entity Relationships Entity Repository Schema & Database Schema First Guide Schema Generator Seeding Serializing Stored Routines Streaming Transactional Outbox Pattern Transactions and Concurrency Type-Safe Relations Unit of Work and Transactions Upgrading Upgrading from v2 to v3 Upgrading from v3 to v4 Upgrading from v4 to v5 Upgrading from v5 to v6 Upgrading from v6 to v7 Using MikroORM with AdminJS Using MikroORM with AdonisJS Usage with CockroachDB Usage with Jest Usage with JavaScript Usage with MongoDB Using MikroORM with NestJS framework Using MikroORM with Next.js Usage with PGlite Usage with SQL drivers Usage with SQLite Usage with transpilers Using native BigInt PKs (MySQL and PostgreSQL) Using Decorators View Entities Virtual Entities The wrap() Helper