# Source: https://mikro-orm.io/api/core.md

# @mikro-orm/core<!-- -->

## Index[**](#Index)

### Namespaces

* [**DefineConfig](https://mikro-orm.io/api/core/namespace/DefineConfig.md)
* [**Hidden](https://mikro-orm.io/api/core/namespace/Hidden.md)
* [**Opt](https://mikro-orm.io/api/core/namespace/Opt.md)
* [**RequiredNullable](https://mikro-orm.io/api/core/namespace/RequiredNullable.md)

### Enumerations

* [**Cascade](https://mikro-orm.io/api/core/enum/Cascade.md)
* [**ChangeSetType](https://mikro-orm.io/api/core/enum/ChangeSetType.md)
* [**DataloaderType](https://mikro-orm.io/api/core/enum/DataloaderType.md)
* [**DeferMode](https://mikro-orm.io/api/core/enum/DeferMode.md)
* [**EventType](https://mikro-orm.io/api/core/enum/EventType.md)
* [**FlushMode](https://mikro-orm.io/api/core/enum/FlushMode.md)
* [**GroupOperator](https://mikro-orm.io/api/core/enum/GroupOperator.md)
* [**IsolationLevel](https://mikro-orm.io/api/core/enum/IsolationLevel.md)
* [**LoadStrategy](https://mikro-orm.io/api/core/enum/LoadStrategy.md)
* [**LockMode](https://mikro-orm.io/api/core/enum/LockMode.md)
* [**NodeState](https://mikro-orm.io/api/core/enum/NodeState.md)
* [**PopulateHint](https://mikro-orm.io/api/core/enum/PopulateHint.md)
* [**PopulatePath](https://mikro-orm.io/api/core/enum/PopulatePath.md)
* [**QueryFlag](https://mikro-orm.io/api/core/enum/QueryFlag.md)
* [**QueryOperator](https://mikro-orm.io/api/core/enum/QueryOperator.md)
* [**QueryOrder](https://mikro-orm.io/api/core/enum/QueryOrder.md)
* [**QueryOrderNumeric](https://mikro-orm.io/api/core/enum/QueryOrderNumeric.md)
* [**ReferenceKind](https://mikro-orm.io/api/core/enum/ReferenceKind.md)
* [**TransactionPropagation](https://mikro-orm.io/api/core/enum/TransactionPropagation.md)

### Classes

* [**AbstractNamingStrategy](https://mikro-orm.io/api/core/class/AbstractNamingStrategy.md)
* [**AbstractSchemaGenerator](https://mikro-orm.io/api/core/class/AbstractSchemaGenerator.md)
* [**ArrayCollection](https://mikro-orm.io/api/core/class/ArrayCollection.md)
* [**ArrayType](https://mikro-orm.io/api/core/class/ArrayType.md)
* [**BaseEntity](https://mikro-orm.io/api/core/class/BaseEntity.md)
* [**BigIntType](https://mikro-orm.io/api/core/class/BigIntType.md)
* [**BlobType](https://mikro-orm.io/api/core/class/BlobType.md)
* [**BooleanType](https://mikro-orm.io/api/core/class/BooleanType.md)
* [**ChangeSet](https://mikro-orm.io/api/core/class/ChangeSet.md)
* [**ChangeSetComputer](https://mikro-orm.io/api/core/class/ChangeSetComputer.md)
* [**ChangeSetPersister](https://mikro-orm.io/api/core/class/ChangeSetPersister.md)
* [**CharacterType](https://mikro-orm.io/api/core/class/CharacterType.md)
* [**CheckConstraintViolationException](https://mikro-orm.io/api/core/class/CheckConstraintViolationException.md)
* [**Collection](https://mikro-orm.io/api/core/class/Collection.md)
* [**Configuration](https://mikro-orm.io/api/core/class/Configuration.md)
* [**Connection](https://mikro-orm.io/api/core/class/Connection.md)
* [**ConnectionException](https://mikro-orm.io/api/core/class/ConnectionException.md)
* [**ConstraintViolationException](https://mikro-orm.io/api/core/class/ConstraintViolationException.md)
* [**Cursor](https://mikro-orm.io/api/core/class/Cursor.md)
* [**CursorError](https://mikro-orm.io/api/core/class/CursorError.md)
* [**DatabaseDriver](https://mikro-orm.io/api/core/class/DatabaseDriver.md)
* [**DatabaseObjectExistsException](https://mikro-orm.io/api/core/class/DatabaseObjectExistsException.md)
* [**DatabaseObjectNotFoundException](https://mikro-orm.io/api/core/class/DatabaseObjectNotFoundException.md)
* [**DataloaderUtils](https://mikro-orm.io/api/core/class/DataloaderUtils.md)
* [**DateTimeType](https://mikro-orm.io/api/core/class/DateTimeType.md)
* [**DateType](https://mikro-orm.io/api/core/class/DateType.md)
* [**DeadlockException](https://mikro-orm.io/api/core/class/DeadlockException.md)
* [**DecimalType](https://mikro-orm.io/api/core/class/DecimalType.md)
* [**DefaultLogger](https://mikro-orm.io/api/core/class/DefaultLogger.md)
* [**DoubleType](https://mikro-orm.io/api/core/class/DoubleType.md)
* [**DriverException](https://mikro-orm.io/api/core/class/DriverException.md)
* [**EntityAssigner](https://mikro-orm.io/api/core/class/EntityAssigner.md)
* [**EntityCaseNamingStrategy](https://mikro-orm.io/api/core/class/EntityCaseNamingStrategy.md)
* [**EntityComparator](https://mikro-orm.io/api/core/class/EntityComparator.md)
* [**EntityFactory](https://mikro-orm.io/api/core/class/EntityFactory.md)
* [**EntityLoader](https://mikro-orm.io/api/core/class/EntityLoader.md)
* [**EntityManager](https://mikro-orm.io/api/core/class/EntityManager.md)
* [**EntityMetadata](https://mikro-orm.io/api/core/class/EntityMetadata.md)
* [**EntityRepository](https://mikro-orm.io/api/core/class/EntityRepository.md)
* [**EntitySchema](https://mikro-orm.io/api/core/class/EntitySchema.md)
* [**EntitySerializer](https://mikro-orm.io/api/core/class/EntitySerializer.md)
* [**EntityTransformer](https://mikro-orm.io/api/core/class/EntityTransformer.md)
* [**EntityValidator](https://mikro-orm.io/api/core/class/EntityValidator.md)
* [**EnumArrayType](https://mikro-orm.io/api/core/class/EnumArrayType.md)
* [**EnumType](https://mikro-orm.io/api/core/class/EnumType.md)
* [**EventManager](https://mikro-orm.io/api/core/class/EventManager.md)
* [**ExceptionConverter](https://mikro-orm.io/api/core/class/ExceptionConverter.md)
* [**FileCacheAdapter](https://mikro-orm.io/api/core/class/FileCacheAdapter.md)
* [**FloatType](https://mikro-orm.io/api/core/class/FloatType.md)
* [**ForeignKeyConstraintViolationException](https://mikro-orm.io/api/core/class/ForeignKeyConstraintViolationException.md)
* [**GeneratedCacheAdapter](https://mikro-orm.io/api/core/class/GeneratedCacheAdapter.md)
* [**Hydrator](https://mikro-orm.io/api/core/class/Hydrator.md)
* [**IdentityMap](https://mikro-orm.io/api/core/class/IdentityMap.md)
* [**IntegerType](https://mikro-orm.io/api/core/class/IntegerType.md)
* [**IntervalType](https://mikro-orm.io/api/core/class/IntervalType.md)
* [**InvalidFieldNameException](https://mikro-orm.io/api/core/class/InvalidFieldNameException.md)
* [**JsonType](https://mikro-orm.io/api/core/class/JsonType.md)
* [**LockWaitTimeoutException](https://mikro-orm.io/api/core/class/LockWaitTimeoutException.md)
* [**MediumIntType](https://mikro-orm.io/api/core/class/MediumIntType.md)
* [**MemoryCacheAdapter](https://mikro-orm.io/api/core/class/MemoryCacheAdapter.md)
* [**MetadataDiscovery](https://mikro-orm.io/api/core/class/MetadataDiscovery.md)
* [**MetadataError](https://mikro-orm.io/api/core/class/MetadataError.md)
* [**MetadataProvider](https://mikro-orm.io/api/core/class/MetadataProvider.md)
* [**MetadataStorage](https://mikro-orm.io/api/core/class/MetadataStorage.md)
* [**MikroORM](https://mikro-orm.io/api/core/class/MikroORM.md)
* [**MongoNamingStrategy](https://mikro-orm.io/api/core/class/MongoNamingStrategy.md)
* [**NonUniqueFieldNameException](https://mikro-orm.io/api/core/class/NonUniqueFieldNameException.md)
* [**NotFoundError](https://mikro-orm.io/api/core/class/NotFoundError.md)
* [**NotNullConstraintViolationException](https://mikro-orm.io/api/core/class/NotNullConstraintViolationException.md)
* [**NullCacheAdapter](https://mikro-orm.io/api/core/class/NullCacheAdapter.md)
* [**NullHighlighter](https://mikro-orm.io/api/core/class/NullHighlighter.md)
* [**ObjectHydrator](https://mikro-orm.io/api/core/class/ObjectHydrator.md)
* [**OptimisticLockError](https://mikro-orm.io/api/core/class/OptimisticLockError.md)
* [**PlainObject](https://mikro-orm.io/api/core/class/PlainObject.md)
* [**Platform](https://mikro-orm.io/api/core/class/Platform.md)
* [**RawQueryFragment](https://mikro-orm.io/api/core/class/RawQueryFragment.md)
* [**ReadOnlyException](https://mikro-orm.io/api/core/class/ReadOnlyException.md)
* [**Reference](https://mikro-orm.io/api/core/class/Reference.md)
* [**ReflectMetadataProvider](https://mikro-orm.io/api/core/class/ReflectMetadataProvider.md)
* [**RequestContext](https://mikro-orm.io/api/core/class/RequestContext.md)
* [**ScalarReference](https://mikro-orm.io/api/core/class/ScalarReference.md)
* [**SerializationContext](https://mikro-orm.io/api/core/class/SerializationContext.md)
* [**ServerException](https://mikro-orm.io/api/core/class/ServerException.md)
* [**SimpleLogger](https://mikro-orm.io/api/core/class/SimpleLogger.md)
* [**SmallIntType](https://mikro-orm.io/api/core/class/SmallIntType.md)
* [**StringType](https://mikro-orm.io/api/core/class/StringType.md)
* [**SyntaxErrorException](https://mikro-orm.io/api/core/class/SyntaxErrorException.md)
* [**TableExistsException](https://mikro-orm.io/api/core/class/TableExistsException.md)
* [**TableNotFoundException](https://mikro-orm.io/api/core/class/TableNotFoundException.md)
* [**TextType](https://mikro-orm.io/api/core/class/TextType.md)
* [**TimeType](https://mikro-orm.io/api/core/class/TimeType.md)
* [**TinyIntType](https://mikro-orm.io/api/core/class/TinyIntType.md)
* [**TransactionContext](https://mikro-orm.io/api/core/class/TransactionContext.md)
* [**TransactionEventBroadcaster](https://mikro-orm.io/api/core/class/TransactionEventBroadcaster.md)
* [**TransactionManager](https://mikro-orm.io/api/core/class/TransactionManager.md)
* [**TransactionStateError](https://mikro-orm.io/api/core/class/TransactionStateError.md)
* [**Type](https://mikro-orm.io/api/core/class/Type.md)
* [**Uint8ArrayType](https://mikro-orm.io/api/core/class/Uint8ArrayType.md)
* [**UnderscoreNamingStrategy](https://mikro-orm.io/api/core/class/UnderscoreNamingStrategy.md)
* [**UniqueConstraintViolationException](https://mikro-orm.io/api/core/class/UniqueConstraintViolationException.md)
* [**UnitOfWork](https://mikro-orm.io/api/core/class/UnitOfWork.md)
* [**UnknownType](https://mikro-orm.io/api/core/class/UnknownType.md)
* [**Utils](https://mikro-orm.io/api/core/class/Utils.md)
* [**UuidType](https://mikro-orm.io/api/core/class/UuidType.md)
* [**ValidationError](https://mikro-orm.io/api/core/class/ValidationError.md)
* [**WrappedEntity](https://mikro-orm.io/api/core/class/WrappedEntity.md)

### Interfaces

* [**AssignOptions](https://mikro-orm.io/api/core/interface/AssignOptions.md)
* [**CacheAdapter](https://mikro-orm.io/api/core/interface/CacheAdapter.md)
* [**ClearDatabaseOptions](https://mikro-orm.io/api/core/interface/ClearDatabaseOptions.md)
* [**ConnectionConfig](https://mikro-orm.io/api/core/interface/ConnectionConfig.md)
* [**ConnectionOptions](https://mikro-orm.io/api/core/interface/ConnectionOptions.md)
* [**CountOptions](https://mikro-orm.io/api/core/interface/CountOptions.md)
* [**CreateContextOptions](https://mikro-orm.io/api/core/interface/CreateContextOptions.md)
* [**CreateOptions](https://mikro-orm.io/api/core/interface/CreateOptions.md)
* [**CreateSchemaOptions](https://mikro-orm.io/api/core/interface/CreateSchemaOptions.md)
* [**DefineEntityHooks](https://mikro-orm.io/api/core/interface/DefineEntityHooks.md)
* [**DeleteOptions](https://mikro-orm.io/api/core/interface/DeleteOptions.md)
* [**DriverMethodOptions](https://mikro-orm.io/api/core/interface/DriverMethodOptions.md)
* [**DropSchemaOptions](https://mikro-orm.io/api/core/interface/DropSchemaOptions.md)
* [**DynamicPassword](https://mikro-orm.io/api/core/interface/DynamicPassword.md)
* [**Edge](https://mikro-orm.io/api/core/interface/Edge.md)
* [**EmbeddedOptions](https://mikro-orm.io/api/core/interface/EmbeddedOptions.md)
* [**EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md)
* [**EnsureDatabaseOptions](https://mikro-orm.io/api/core/interface/EnsureDatabaseOptions.md)
* [**EntityProperty](https://mikro-orm.io/api/core/interface/EntityProperty.md)
* [**EnumOptions](https://mikro-orm.io/api/core/interface/EnumOptions.md)
* [**EventArgs](https://mikro-orm.io/api/core/interface/EventArgs.md)
* [**EventSubscriber](https://mikro-orm.io/api/core/interface/EventSubscriber.md)
* [**FactoryOptions](https://mikro-orm.io/api/core/interface/FactoryOptions.md)
* [**FindAllOptions](https://mikro-orm.io/api/core/interface/FindAllOptions.md)
* [**FindByCursorOptions](https://mikro-orm.io/api/core/interface/FindByCursorOptions.md)
* [**FindOneOptions](https://mikro-orm.io/api/core/interface/FindOneOptions.md)
* [**FindOneOrFailOptions](https://mikro-orm.io/api/core/interface/FindOneOrFailOptions.md)
* [**FindOptions](https://mikro-orm.io/api/core/interface/FindOptions.md)
* [**FlatQueryOrderMap](https://mikro-orm.io/api/core/interface/FlatQueryOrderMap.md)
* [**FlushEventArgs](https://mikro-orm.io/api/core/interface/FlushEventArgs.md)
* [**ForkOptions](https://mikro-orm.io/api/core/interface/ForkOptions.md)
* [**FormulaOptions](https://mikro-orm.io/api/core/interface/FormulaOptions.md)
* [**GenerateOptions](https://mikro-orm.io/api/core/interface/GenerateOptions.md)
* [**GetReferenceOptions](https://mikro-orm.io/api/core/interface/GetReferenceOptions.md)
* [**Highlighter](https://mikro-orm.io/api/core/interface/Highlighter.md)
* [**IConfiguration](https://mikro-orm.io/api/core/interface/IConfiguration.md)
* [**IDatabaseDriver](https://mikro-orm.io/api/core/interface/IDatabaseDriver.md)
* [**IEntityGenerator](https://mikro-orm.io/api/core/interface/IEntityGenerator.md)
* [**IMigrationGenerator](https://mikro-orm.io/api/core/interface/IMigrationGenerator.md)
* [**IMigrator](https://mikro-orm.io/api/core/interface/IMigrator.md)
* [**IndexOptions](https://mikro-orm.io/api/core/interface/IndexOptions.md)
* [**InitCollectionOptions](https://mikro-orm.io/api/core/interface/InitCollectionOptions.md)
* [**ISchemaGenerator](https://mikro-orm.io/api/core/interface/ISchemaGenerator.md)
* [**ISeedManager](https://mikro-orm.io/api/core/interface/ISeedManager.md)
* [**IWrappedEntity](https://mikro-orm.io/api/core/interface/IWrappedEntity.md)
* [**LoadCountOptions](https://mikro-orm.io/api/core/interface/LoadCountOptions.md)
* [**LoadedCollection](https://mikro-orm.io/api/core/interface/LoadedCollection.md)
* [**LoadedReference](https://mikro-orm.io/api/core/interface/LoadedReference.md)
* [**LoadHint](https://mikro-orm.io/api/core/interface/LoadHint.md)
* [**LoadReferenceOptions](https://mikro-orm.io/api/core/interface/LoadReferenceOptions.md)
* [**LoadReferenceOrFailOptions](https://mikro-orm.io/api/core/interface/LoadReferenceOrFailOptions.md)
* [**LockOptions](https://mikro-orm.io/api/core/interface/LockOptions.md)
* [**LogContext](https://mikro-orm.io/api/core/interface/LogContext.md)
* [**Logger](https://mikro-orm.io/api/core/interface/Logger.md)
* [**LoggerOptions](https://mikro-orm.io/api/core/interface/LoggerOptions.md)
* [**ManyToManyOptions](https://mikro-orm.io/api/core/interface/ManyToManyOptions.md)
* [**ManyToOneOptions](https://mikro-orm.io/api/core/interface/ManyToOneOptions.md)
* [**MatchingOptions](https://mikro-orm.io/api/core/interface/MatchingOptions.md)
* [**MergeOptions](https://mikro-orm.io/api/core/interface/MergeOptions.md)
* [**MetadataDiscoveryOptions](https://mikro-orm.io/api/core/interface/MetadataDiscoveryOptions.md)
* [**MigrationDiff](https://mikro-orm.io/api/core/interface/MigrationDiff.md)
* [**MigrationObject](https://mikro-orm.io/api/core/interface/MigrationObject.md)
* [**MikroORMOptions](https://mikro-orm.io/api/core/interface/MikroORMOptions.md)
* [**NamingStrategy](https://mikro-orm.io/api/core/interface/NamingStrategy.md)
* [**NativeDeleteOptions](https://mikro-orm.io/api/core/interface/NativeDeleteOptions.md)
* [**NativeInsertUpdateManyOptions](https://mikro-orm.io/api/core/interface/NativeInsertUpdateManyOptions.md)
* [**NativeInsertUpdateOptions](https://mikro-orm.io/api/core/interface/NativeInsertUpdateOptions.md)
* [**Node](https://mikro-orm.io/api/core/interface/Node.md)
* [**OneToManyOptions](https://mikro-orm.io/api/core/interface/OneToManyOptions.md)
* [**OneToOneOptions](https://mikro-orm.io/api/core/interface/OneToOneOptions.md)
* [**PoolConfig](https://mikro-orm.io/api/core/interface/PoolConfig.md)
* [**PrimaryKeyOptions](https://mikro-orm.io/api/core/interface/PrimaryKeyOptions.md)
* [**PropertyOptions](https://mikro-orm.io/api/core/interface/PropertyOptions.md)
* [**QueryResult](https://mikro-orm.io/api/core/interface/QueryResult.md)
* [**ReferenceOptions](https://mikro-orm.io/api/core/interface/ReferenceOptions.md)
* [**RefreshDatabaseOptions](https://mikro-orm.io/api/core/interface/RefreshDatabaseOptions.md)
* [**RegisterOptions](https://mikro-orm.io/api/core/interface/RegisterOptions.md)
* [**SeederOptions](https://mikro-orm.io/api/core/interface/SeederOptions.md)
* [**SerializedPrimaryKeyOptions](https://mikro-orm.io/api/core/interface/SerializedPrimaryKeyOptions.md)
* [**SerializeOptions](https://mikro-orm.io/api/core/interface/SerializeOptions.md)
* [**Settings](https://mikro-orm.io/api/core/interface/Settings.md)
* [**SimpleColumnMeta](https://mikro-orm.io/api/core/interface/SimpleColumnMeta.md)
* [**SyncCacheAdapter](https://mikro-orm.io/api/core/interface/SyncCacheAdapter.md)
* [**TransactionEventArgs](https://mikro-orm.io/api/core/interface/TransactionEventArgs.md)
* [**TransactionOptions](https://mikro-orm.io/api/core/interface/TransactionOptions.md)
* [**TransformContext](https://mikro-orm.io/api/core/interface/TransformContext.md)
* [**TypeConfig](https://mikro-orm.io/api/core/interface/TypeConfig.md)
* [**UniqueOptions](https://mikro-orm.io/api/core/interface/UniqueOptions.md)
* [**UpdateOptions](https://mikro-orm.io/api/core/interface/UpdateOptions.md)
* [**UpdateSchemaOptions](https://mikro-orm.io/api/core/interface/UpdateSchemaOptions.md)
* [**UpsertManyOptions](https://mikro-orm.io/api/core/interface/UpsertManyOptions.md)
* [**UpsertOptions](https://mikro-orm.io/api/core/interface/UpsertOptions.md)

### Type Aliases

* [**AnyEntity](https://mikro-orm.io/api/core.md#AnyEntity)
* [**AnyString](https://mikro-orm.io/api/core.md#AnyString)
* [**AutoPath](https://mikro-orm.io/api/core.md#AutoPath)
* [**Cast](https://mikro-orm.io/api/core.md#Cast)
* [**CheckCallback](https://mikro-orm.io/api/core.md#CheckCallback)
* [**CheckOptions](https://mikro-orm.io/api/core.md#CheckOptions)
* [**ConnectionType](https://mikro-orm.io/api/core.md#ConnectionType)
* [**Constructor](https://mikro-orm.io/api/core.md#Constructor)
* [**DeepPartial](https://mikro-orm.io/api/core.md#DeepPartial)
* [**DefineConfig](https://mikro-orm.io/api/core.md#DefineConfig)
* [**Dictionary](https://mikro-orm.io/api/core.md#Dictionary)
* [**EmbeddableOptions](https://mikro-orm.io/api/core.md#EmbeddableOptions)
* [**EmbeddedPrefixMode](https://mikro-orm.io/api/core.md#EmbeddedPrefixMode)
* [**EntityClass](https://mikro-orm.io/api/core.md#EntityClass)
* [**EntityClassGroup](https://mikro-orm.io/api/core.md#EntityClassGroup)
* [**EntityData](https://mikro-orm.io/api/core.md#EntityData)
* [**EntityDataValue](https://mikro-orm.io/api/core.md#EntityDataValue)
* [**EntityDictionary](https://mikro-orm.io/api/core.md#EntityDictionary)
* [**EntityDTO](https://mikro-orm.io/api/core.md#EntityDTO)
* [**EntityField](https://mikro-orm.io/api/core.md#EntityField)
* [**EntityKey](https://mikro-orm.io/api/core.md#EntityKey)
* [**EntityLoaderOptions](https://mikro-orm.io/api/core.md#EntityLoaderOptions)
* [**EntityName](https://mikro-orm.io/api/core.md#EntityName)
* [**EntityOptions](https://mikro-orm.io/api/core.md#EntityOptions)
* [**EntityProps](https://mikro-orm.io/api/core.md#EntityProps)
* [**EntityRef](https://mikro-orm.io/api/core.md#EntityRef)
* [**EntitySchemaMetadata](https://mikro-orm.io/api/core.md#EntitySchemaMetadata)
* [**EntitySchemaProperty](https://mikro-orm.io/api/core.md#EntitySchemaProperty)
* [**EntityType](https://mikro-orm.io/api/core.md#EntityType)
* [**EntityValue](https://mikro-orm.io/api/core.md#EntityValue)
* [**ExpandHint](https://mikro-orm.io/api/core.md#ExpandHint)
* [**ExpandProperty](https://mikro-orm.io/api/core.md#ExpandProperty)
* [**ExpandQuery](https://mikro-orm.io/api/core.md#ExpandQuery)
* [**ExpandScalar](https://mikro-orm.io/api/core.md#ExpandScalar)
* [**FilterItemValue](https://mikro-orm.io/api/core.md#FilterItemValue)
* [**FilterKey](https://mikro-orm.io/api/core.md#FilterKey)
* [**FilterObject](https://mikro-orm.io/api/core.md#FilterObject)
* [**FilterOptions](https://mikro-orm.io/api/core.md#FilterOptions)
* [**FilterQuery](https://mikro-orm.io/api/core.md#FilterQuery)
* [**FilterValue](https://mikro-orm.io/api/core.md#FilterValue)
* [**FromEntityType](https://mikro-orm.io/api/core.md#FromEntityType)
* [**GetRepository](https://mikro-orm.io/api/core.md#GetRepository)
* [**Hidden](https://mikro-orm.io/api/core.md#Hidden)
* [**ImportsResolver](https://mikro-orm.io/api/core.md#ImportsResolver)
* [**IndexCallback](https://mikro-orm.io/api/core.md#IndexCallback)
* [**InferEntity](https://mikro-orm.io/api/core.md#InferEntity)
* [**InferEntityFromProperties](https://mikro-orm.io/api/core.md#InferEntityFromProperties)
* [**InferPrimaryKey](https://mikro-orm.io/api/core.md#InferPrimaryKey)
* [**IPrimaryKey](https://mikro-orm.io/api/core.md#IPrimaryKey)
* [**IsSubset](https://mikro-orm.io/api/core.md#IsSubset)
* [**IsUnknown](https://mikro-orm.io/api/core.md#IsUnknown)
* [**IType](https://mikro-orm.io/api/core.md#IType)
* [**Loaded](https://mikro-orm.io/api/core.md#Loaded)
* [**LoggerNamespace](https://mikro-orm.io/api/core.md#LoggerNamespace)
* [**LoggingOptions](https://mikro-orm.io/api/core.md#LoggingOptions)
* [**MaybePromise](https://mikro-orm.io/api/core.md#MaybePromise)
* [**MergeLoaded](https://mikro-orm.io/api/core.md#MergeLoaded)
* [**MergeSelected](https://mikro-orm.io/api/core.md#MergeSelected)
* [**MetadataProcessor](https://mikro-orm.io/api/core.md#MetadataProcessor)
* [**MigrateOptions](https://mikro-orm.io/api/core.md#MigrateOptions)
* [**MigrationResult](https://mikro-orm.io/api/core.md#MigrationResult)
* [**MigrationRow](https://mikro-orm.io/api/core.md#MigrationRow)
* [**MigrationsOptions](https://mikro-orm.io/api/core.md#MigrationsOptions)
* [**MigratorEvent](https://mikro-orm.io/api/core.md#MigratorEvent)
* [**New](https://mikro-orm.io/api/core.md#New)
* [**NoInfer](https://mikro-orm.io/api/core.md#NoInfer)
* [**ObjectQuery](https://mikro-orm.io/api/core.md#ObjectQuery)
* [**Opt](https://mikro-orm.io/api/core.md#Opt)
* [**Options](https://mikro-orm.io/api/core.md#Options)
* [**OrderDefinition](https://mikro-orm.io/api/core.md#OrderDefinition)
* [**Populate](https://mikro-orm.io/api/core.md#Populate)
* [**PopulateOptions](https://mikro-orm.io/api/core.md#PopulateOptions)
* [**Primary](https://mikro-orm.io/api/core.md#Primary)
* [**QBFilterQuery](https://mikro-orm.io/api/core.md#QBFilterQuery)
* [**QBQueryOrderMap](https://mikro-orm.io/api/core.md#QBQueryOrderMap)
* [**QueryOrderKeys](https://mikro-orm.io/api/core.md#QueryOrderKeys)
* [**QueryOrderKeysFlat](https://mikro-orm.io/api/core.md#QueryOrderKeysFlat)
* [**QueryOrderMap](https://mikro-orm.io/api/core.md#QueryOrderMap)
* [**Ref](https://mikro-orm.io/api/core.md#Ref)
* [**Rel](https://mikro-orm.io/api/core.md#Rel)
* [**RequiredEntityData](https://mikro-orm.io/api/core.md#RequiredEntityData)
* [**RequiredNullable](https://mikro-orm.io/api/core.md#RequiredNullable)
* [**Scalar](https://mikro-orm.io/api/core.md#Scalar)
* [**ScalarRef](https://mikro-orm.io/api/core.md#ScalarRef)
* [**Selected](https://mikro-orm.io/api/core.md#Selected)
* [**Transaction](https://mikro-orm.io/api/core.md#Transaction)
* [**TransactionEventType](https://mikro-orm.io/api/core.md#TransactionEventType)
* [**UmzugMigration](https://mikro-orm.io/api/core.md#UmzugMigration)
* [**UnboxArray](https://mikro-orm.io/api/core.md#UnboxArray)
* [**UniversalPropertyKeys](https://mikro-orm.io/api/core.md#UniversalPropertyKeys)

### Variables

* [**ARRAY\_OPERATORS](https://mikro-orm.io/api/core.md#ARRAY_OPERATORS)
* [**Config](https://mikro-orm.io/api/core.md#Config)
* [**EagerProps](https://mikro-orm.io/api/core.md#EagerProps)
* [**EntityManagerType](https://mikro-orm.io/api/core.md#EntityManagerType)
* [**EntityRepositoryType](https://mikro-orm.io/api/core.md#EntityRepositoryType)
* [**EventTypeMap](https://mikro-orm.io/api/core.md#EventTypeMap)
* [**HiddenProps](https://mikro-orm.io/api/core.md#HiddenProps)
* [**JSON\_KEY\_OPERATORS](https://mikro-orm.io/api/core.md#JSON_KEY_OPERATORS)
* [**JsonProperty](https://mikro-orm.io/api/core.md#JsonProperty)
* [**ObjectBindingPattern](https://mikro-orm.io/api/core.md#ObjectBindingPattern)
* [**OptionalProps](https://mikro-orm.io/api/core.md#OptionalProps)
* [**p](https://mikro-orm.io/api/core.md#p)
* [**PrimaryKeyProp](https://mikro-orm.io/api/core.md#PrimaryKeyProp)
* [**SCALAR\_TYPES](https://mikro-orm.io/api/core.md#SCALAR_TYPES)
* [**t](https://mikro-orm.io/api/core.md#t)
* [**types](https://mikro-orm.io/api/core.md#types)

### Functions

* [**AfterCreate](https://mikro-orm.io/api/core/function/AfterCreate.md)
* [**AfterDelete](https://mikro-orm.io/api/core/function/AfterDelete.md)
* [**AfterUpdate](https://mikro-orm.io/api/core/function/AfterUpdate.md)
* [**AfterUpsert](https://mikro-orm.io/api/core/function/AfterUpsert.md)
* [**assign](https://mikro-orm.io/api/core/function/assign.md)
* [**BeforeCreate](https://mikro-orm.io/api/core/function/BeforeCreate.md)
* [**BeforeDelete](https://mikro-orm.io/api/core/function/BeforeDelete.md)
* [**BeforeUpdate](https://mikro-orm.io/api/core/function/BeforeUpdate.md)
* [**BeforeUpsert](https://mikro-orm.io/api/core/function/BeforeUpsert.md)
* [**Check](https://mikro-orm.io/api/core/function/Check.md)
* [**compareArrays](https://mikro-orm.io/api/core/function/compareArrays.md)
* [**compareBooleans](https://mikro-orm.io/api/core/function/compareBooleans.md)
* [**compareBuffers](https://mikro-orm.io/api/core/function/compareBuffers.md)
* [**compareObjects](https://mikro-orm.io/api/core/function/compareObjects.md)
* [**CreateRequestContext](https://mikro-orm.io/api/core/function/CreateRequestContext.md)
* [**createSqlFunction](https://mikro-orm.io/api/core/function/createSqlFunction.md)
* [**defineConfig](https://mikro-orm.io/api/core/function/defineConfig.md)
* [**defineEntity](https://mikro-orm.io/api/core/function/defineEntity.md)
* [**Embeddable](https://mikro-orm.io/api/core/function/Embeddable.md)
* [**Embedded](https://mikro-orm.io/api/core/function/Embedded.md)
* [**EnsureRequestContext](https://mikro-orm.io/api/core/function/EnsureRequestContext.md)
* [**Entity](https://mikro-orm.io/api/core/function/Entity.md)
* [**Enum](https://mikro-orm.io/api/core/function/Enum.md)
* [**equals](https://mikro-orm.io/api/core/function/equals.md)
* [**Filter](https://mikro-orm.io/api/core/function/Filter.md)
* [**Formula](https://mikro-orm.io/api/core/function/Formula.md)
* [**Index](https://mikro-orm.io/api/core/function/Index.md)
* [**ManyToMany](https://mikro-orm.io/api/core/function/ManyToMany.md)
* [**ManyToOne](https://mikro-orm.io/api/core/function/ManyToOne.md)
* [**OneToMany](https://mikro-orm.io/api/core/function/OneToMany.md)
* [**OneToOne](https://mikro-orm.io/api/core/function/OneToOne.md)
* [**OnInit](https://mikro-orm.io/api/core/function/OnInit.md)
* [**OnLoad](https://mikro-orm.io/api/core/function/OnLoad.md)
* [**parseJsonSafe](https://mikro-orm.io/api/core/function/parseJsonSafe.md)
* [**PrimaryKey](https://mikro-orm.io/api/core/function/PrimaryKey.md)
* [**Property](https://mikro-orm.io/api/core/function/Property.md)
* [**quote](https://mikro-orm.io/api/core/function/quote.md)
* [**raw](https://mikro-orm.io/api/core/function/raw.md)
* [**ref](https://mikro-orm.io/api/core/function/ref.md)
* [**rel](https://mikro-orm.io/api/core/function/rel.md)
* [**serialize](https://mikro-orm.io/api/core/function/serialize.md)
* [**SerializedPrimaryKey](https://mikro-orm.io/api/core/function/SerializedPrimaryKey.md)
* [**sql](https://mikro-orm.io/api/core/function/sql.md)
* [**Transactional](https://mikro-orm.io/api/core/function/Transactional.md)
* [**Unique](https://mikro-orm.io/api/core/function/Unique.md)
* [**wrap](https://mikro-orm.io/api/core/function/wrap.md)

## Type Aliases<!-- -->[**](<#Type Aliases>)

### [**](#AnyEntity)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L299)AnyEntity

**AnyEntity\<T>: Partial\<T>

#### Type parameters

* **T** = any

### [**](#AnyString)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L490)AnyString

**AnyString: string & {}

### [**](#AutoPath)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1118)AutoPath

**AutoPath\<O, P, E, D>: P extends boolean ? P : \[D] extends \[never] ? never : P extends any ? P extends string ? ((P & \`${string}.\`) extends never ? P : P & \`${string}.\`) extends infer

<!-- -->

Q ? Q extends \`${infer

<!-- -->

A}.${infer

<!-- -->

B}\` ? A extends StringKeys\<O, E> ? \`${A}.${[AutoPath](https://mikro-orm.io/api/core.md#AutoPath)\<NonNullable\<GetStringKey<..., ..., ...>>, B, E, Prev\[D]>}\` : never : Q extends StringKeys\<O, E> ? (NonNullable<...> extends unknown ? Exclude<..., ...> : never) | (StringKeys<..., ...> extends never ? never : \`${...}.\`) : StringKeys\<O, E> | \`${CollectionKeys\<O>}:ref\` : never : never : never

#### Type parameters

* **O**
* **P**: string | boolean
* **E**: string = never
* **D**: Prev\[number] = 9

### [**](#Cast)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L55)Cast

**Cast\<T, R>: T extends R ? T : R

#### Type parameters

* **T**
* **R**

### [**](#CheckCallback)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L481)CheckCallback

**CheckCallback\<T>: (columns) => string

#### Type parameters

* **T**

#### Type declaration

* * **(columns): string

  - #### Parameters

    * ##### columns: Record\<PropertyName\<T>, string>

    #### Returns string

### [**](#CheckOptions)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/decorators/Check.ts#L19)CheckOptions

**CheckOptions\<T>: CheckConstraint\<T>

#### Type parameters

* **T** = any

### [**](#ConnectionType)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1337)ConnectionType

**ConnectionType: read | write

### [**](#Constructor)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L35)Constructor

**Constructor\<T>: new (...args) => T

#### Type parameters

* **T** = unknown

#### Type declaration

* * **new (...args): T

  - #### Parameters

    * ##### rest...args: any\[]

    #### Returns T

### [**](#DeepPartial)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L62)DeepPartial

**DeepPartial\<T>: T & { \[ P in keyof

<!-- -->

T ]?: T\[P] extends infer

<!-- -->

U\[] ? [DeepPartial](https://mikro-orm.io/api/core.md#DeepPartial)\<U>\[] : T\[P] extends Readonly\<infer

<!-- -->

U>\[] ? Readonly<[DeepPartial](https://mikro-orm.io/api/core.md#DeepPartial)\<U>>\[] : [DeepPartial](https://mikro-orm.io/api/core.md#DeepPartial)\<T\[P]> }

#### Type parameters

* **T**

### [**](#DefineConfig)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L107)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L109)DefineConfig

**DefineConfig\<T>: T & [DefineConfig.Brand](https://mikro-orm.io/api/core/namespace/DefineConfig.md#Brand)

#### Type parameters

* **T**: [TypeConfig](https://mikro-orm.io/api/core/interface/TypeConfig.md)

### [**](#Dictionary)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L36)Dictionary

**Dictionary\<T>:

<!-- -->

{}

#### Type parameters

* **T** = any

#### Type declaration



### [**](#EmbeddableOptions)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/decorators/Embeddable.ts#L16)EmbeddableOptions

**EmbeddableOptions: { abstract?

<!-- -->

: boolean; discriminatorColumn?

<!-- -->

: string; discriminatorMap?

<!-- -->

: [Dictionary](https://mikro-orm.io/api/core.md#Dictionary)\<string>; discriminatorValue?

<!-- -->

: number | string }

#### Type declaration

* ##### optionalabstract?<!-- -->: boolean
* ##### optionaldiscriminatorColumn?<!-- -->: string
* ##### optionaldiscriminatorMap?<!-- -->: [Dictionary](https://mikro-orm.io/api/core.md#Dictionary)\<string>
* ##### optionaldiscriminatorValue?<!-- -->: number | string

### [**](#EmbeddedPrefixMode)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/decorators/Embedded.ts#L24)EmbeddedPrefixMode

**EmbeddedPrefixMode: absolute | relative

With `absolute` the prefix is set at the root of the entity (regardless of the nesting level)

### [**](#EntityClass)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L301)EntityClass

**EntityClass\<T>: Function & { prototype: T }

#### Type parameters

* **T**

### [**](#EntityClassGroup)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L302)EntityClassGroup

**EntityClassGroup\<T>: { entity: [EntityClass](https://mikro-orm.io/api/core.md#EntityClass)\<T>; schema: [EntityMetadata](https://mikro-orm.io/api/core/class/EntityMetadata.md)\<T> | [EntitySchema](https://mikro-orm.io/api/core/class/EntitySchema.md)\<T> }

#### Type parameters

* **T**

#### Type declaration

* ##### entity: [EntityClass](https://mikro-orm.io/api/core.md#EntityClass)\<T>
* ##### schema: [EntityMetadata](https://mikro-orm.io/api/core/class/EntityMetadata.md)\<T> | [EntitySchema](https://mikro-orm.io/api/core/class/EntitySchema.md)\<T>

### [**](#EntityData)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L389)EntityData

**EntityData\<T, C>: { \[ K in [EntityKey](https://mikro-orm.io/api/core.md#EntityKey)\<T> ]?: EntityDataItem\<T\[K] & {}, C> }

#### Type parameters

* **T**
* **C**: boolean = false

### [**](#EntityDataValue)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L40)EntityDataValue

**EntityDataValue\<T>: [EntityData](https://mikro-orm.io/api/core.md#EntityData)\<T>\[[EntityKey](https://mikro-orm.io/api/core.md#EntityKey)\<T>]

#### Type parameters

* **T**

### [**](#EntityDictionary)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L395)EntityDictionary

**EntityDictionary\<T>: [EntityData](https://mikro-orm.io/api/core.md#EntityData)\<T> & Record\<any, any>

#### Type parameters

* **T**

### [**](#EntityDTO)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L469)EntityDTO

**EntityDTO\<T, C>: { \[ K in keyof

<!-- -->

T as DTORequiredKeys\<T, K> ]: EntityDTOProp\<T, T\[K], C> | AddOptional\<T\[K]> } & { \[ K in keyof

<!-- -->

T as DTOOptionalKeys\<T, K> ]?: EntityDTOProp\<T, T\[K], C> | AddOptional\<T\[K]> }

#### Type parameters

* **T**
* **C**: [TypeConfig](https://mikro-orm.io/api/core/interface/TypeConfig.md) = never

### [**](#EntityField)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/drivers/IDatabaseDriver.ts#L94)EntityField

**EntityField\<T, P>: keyof

<!-- -->

T | PopulatePath.ALL | [AutoPath](https://mikro-orm.io/api/core.md#AutoPath)\<T, P, \`${PopulatePath.ALL}\`>

#### Type parameters

* **T**
* **P**: string = PopulatePath.ALL

### [**](#EntityKey)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L38)EntityKey

**EntityKey\<T, B>: string & { \[ K in keyof

<!-- -->

T ]-?: CleanKeys\<T, K, B> extends never ? never : K }\[keyof

<!-- -->

T]

#### Type parameters

* **T** = unknown
* **B**: boolean = false

### [**](#EntityLoaderOptions)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/entity/EntityLoader.ts#L36)EntityLoaderOptions

**EntityLoaderOptions\<Entity, Fields, Excludes>: { connectionType?

<!-- -->

: [ConnectionType](https://mikro-orm.io/api/core.md#ConnectionType); convertCustomTypes?

<!-- -->

: boolean; exclude?

<!-- -->

: readonly

<!-- -->

[EntityField](https://mikro-orm.io/api/core.md#EntityField)\<Entity, Excludes>\[]; fields?

<!-- -->

: readonly

<!-- -->

[EntityField](https://mikro-orm.io/api/core.md#EntityField)\<Entity, Fields>\[]; filters?

<!-- -->

: [FilterOptions](https://mikro-orm.io/api/core.md#FilterOptions); ignoreLazyScalarProperties?

<!-- -->

: boolean; lockMode?

<!-- -->

: Exclude<[LockMode](https://mikro-orm.io/api/core/enum/LockMode.md), LockMode.OPTIMISTIC>; logging?

<!-- -->

: [LoggingOptions](https://mikro-orm.io/api/core.md#LoggingOptions); lookup?

<!-- -->

: boolean; orderBy?

<!-- -->

: [QueryOrderMap](https://mikro-orm.io/api/core.md#QueryOrderMap)\<Entity> | [QueryOrderMap](https://mikro-orm.io/api/core.md#QueryOrderMap)\<Entity>\[]; populateWhere?

<!-- -->

: [PopulateHint](https://mikro-orm.io/api/core/enum/PopulateHint.md) | \`${[PopulateHint](https://mikro-orm.io/api/core/enum/PopulateHint.md)}\`; refresh?

<!-- -->

: boolean; schema?

<!-- -->

: string; strategy?

<!-- -->

: [LoadStrategy](https://mikro-orm.io/api/core/enum/LoadStrategy.md); validate?

<!-- -->

: boolean; where?

<!-- -->

: [FilterQuery](https://mikro-orm.io/api/core.md#FilterQuery)\<Entity> }

#### Type parameters

* **Entity**
* **Fields**: string = PopulatePath.ALL
* **Excludes**: string = never

#### Type declaration

* ##### optionalconnectionType?<!-- -->: [ConnectionType](https://mikro-orm.io/api/core.md#ConnectionType)
* ##### optionalconvertCustomTypes?<!-- -->: boolean
* ##### optionalexclude?<!-- -->: readonly<!-- --> [EntityField](https://mikro-orm.io/api/core.md#EntityField)\<Entity, Excludes>\[]
* ##### optionalfields?<!-- -->: readonly<!-- --> [EntityField](https://mikro-orm.io/api/core.md#EntityField)\<Entity, Fields>\[]
* ##### optionalfilters?<!-- -->: [FilterOptions](https://mikro-orm.io/api/core.md#FilterOptions)
* ##### optionalignoreLazyScalarProperties?<!-- -->: boolean
* ##### optionallockMode?<!-- -->: Exclude<[LockMode](https://mikro-orm.io/api/core/enum/LockMode.md), LockMode.OPTIMISTIC>
* ##### optionallogging?<!-- -->: [LoggingOptions](https://mikro-orm.io/api/core.md#LoggingOptions)
* ##### optionallookup?<!-- -->: boolean
* ##### optionalorderBy?<!-- -->: [QueryOrderMap](https://mikro-orm.io/api/core.md#QueryOrderMap)\<Entity> | [QueryOrderMap](https://mikro-orm.io/api/core.md#QueryOrderMap)\<Entity>\[]
* ##### optionalpopulateWhere?<!-- -->: [PopulateHint](https://mikro-orm.io/api/core/enum/PopulateHint.md) | \`${[PopulateHint](https://mikro-orm.io/api/core/enum/PopulateHint.md)}\`
* ##### optionalrefresh?<!-- -->: boolean
* ##### optionalschema?<!-- -->: string
* ##### optionalstrategy?<!-- -->: [LoadStrategy](https://mikro-orm.io/api/core/enum/LoadStrategy.md)
* ##### optionalvalidate?<!-- -->: boolean
* ##### optionalwhere?<!-- -->: [FilterQuery](https://mikro-orm.io/api/core.md#FilterQuery)\<Entity>

### [**](#EntityName)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L303)EntityName

**EntityName\<T>: string | [EntityClass](https://mikro-orm.io/api/core.md#EntityClass)\<T> | [EntitySchema](https://mikro-orm.io/api/core/class/EntitySchema.md)\<T, any> | { name: string }

#### Type parameters

* **T**

### [**](#EntityOptions)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/decorators/Entity.ts#L18)EntityOptions

**EntityOptions\<T, E>: { abstract?

<!-- -->

: boolean; collection?

<!-- -->

: string; comment?

<!-- -->

: string; discriminatorColumn?

<!-- -->

: (T extends [EntityClass](https://mikro-orm.io/api/core.md#EntityClass)\<infer

<!-- -->

P> ? keyof

<!-- -->

P : string) | [AnyString](https://mikro-orm.io/api/core.md#AnyString); discriminatorMap?

<!-- -->

: [Dictionary](https://mikro-orm.io/api/core.md#Dictionary)\<string>; discriminatorValue?

<!-- -->

: number | string; expression?

<!-- -->

: string | (em, where, options) => object; forceConstructor?

<!-- -->

: boolean; hasTriggers?

<!-- -->

: boolean; readonly?

<!-- -->

: boolean; repository?

<!-- -->

: () => [Constructor](https://mikro-orm.io/api/core.md#Constructor); schema?

<!-- -->

: string; tableName?

<!-- -->

: string; virtual?

<!-- -->

: boolean }

#### Type parameters

* **T**
* **E** = T extends [EntityClass](https://mikro-orm.io/api/core.md#EntityClass)\<infer
  <!-- -->
  P> ? P : T

#### Type declaration

* ##### optionalabstract?<!-- -->: boolean

  Marks entity as abstract, such entities are inlined during discovery.

* ##### optionalcollection?<!-- -->: string

  Override default collection/table name. Alias for `tableName`.

* ##### optionalcomment?<!-- -->: string

  Specify comment to table. (SQL only)

* ##### optionaldiscriminatorColumn?<!-- -->: (T extends [EntityClass](https://mikro-orm.io/api/core.md#EntityClass)\<infer <!-- -->P> ? keyof<!-- --> P : string) | [AnyString](https://mikro-orm.io/api/core.md#AnyString)

  For [Single Table Inheritance](https://mikro-orm.io/docs/inheritance-mapping.md#single-table-inheritance).

* ##### optionaldiscriminatorMap?<!-- -->: [Dictionary](https://mikro-orm.io/api/core.md#Dictionary)\<string>

  For [Single Table Inheritance](https://mikro-orm.io/docs/inheritance-mapping.md#single-table-inheritance).

* ##### optionaldiscriminatorValue?<!-- -->: number | string

  For [Single Table Inheritance](https://mikro-orm.io/docs/inheritance-mapping.md#single-table-inheritance).

* ##### optionalexpression?<!-- -->: string | (em, where, options) => object

  SQL query that maps to a [virtual entity](https://mikro-orm.io/docs/virtual-entities.md).

* ##### optionalforceConstructor?<!-- -->: boolean

  Enforce use of constructor when creating managed entity instances.

* ##### optionalhasTriggers?<!-- -->: boolean

  Used to make ORM aware of externally defined triggers. This is needed for MS SQL Server multi inserts, ignored in other dialects.

* ##### optionalreadonly?<!-- -->: boolean

  Disables change tracking - such entities are ignored during flush.

* ##### optionalrepository?<!-- -->: () => [Constructor](https://mikro-orm.io/api/core.md#Constructor)

  Set [custom repository class](https://mikro-orm.io/docs/repositories.md#custom-repository).

  * * **(): [Constructor](https://mikro-orm.io/api/core.md#Constructor)

    - #### Returns [Constructor](https://mikro-orm.io/api/core.md#Constructor)

* ##### optionalschema?<!-- -->: string

  Sets the schema name.

* ##### optionaltableName?<!-- -->: string

  Override default collection/table name. Alias for `collection`.

* ##### optionalvirtual?<!-- -->: boolean

  Marks entity as [virtual](https://mikro-orm.io/docs/virtual-entities.md). This is set automatically when you use `expression` option.

### [**](#EntityProps)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L220)EntityProps

**EntityProps\<T>: { -readonly \[ K in [EntityKey](https://mikro-orm.io/api/core.md#EntityKey)\<T> ]?: T\[K] }

#### Type parameters

* **T**

### [**](#EntityRef)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L410)EntityRef

**EntityRef\<T>: true extends [IsUnknown](https://mikro-orm.io/api/core.md#IsUnknown)\<PrimaryProperty\<T>> ? [Reference](https://mikro-orm.io/api/core/class/Reference.md)\<T> : IsAny\<T> extends true ? [Reference](https://mikro-orm.io/api/core/class/Reference.md)\<T> : { \[ K in PrimaryProperty\<T> & keyof

<!-- -->

T ]: T\[K] } & [Reference](https://mikro-orm.io/api/core/class/Reference.md)\<T>

Alias for `Reference<T> & { id: number }` (see [Ref](https://mikro-orm.io/api/core.md#Ref)).

***

#### Type parameters

* **T**: object

### [**](#EntitySchemaMetadata)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/metadata/EntitySchema.ts#L47)EntitySchemaMetadata

**EntitySchemaMetadata\<Entity, Base>: Omit\<Partial<[EntityMetadata](https://mikro-orm.io/api/core/class/EntityMetadata.md)\<Entity>>, name | properties | extends> & ({ name: string } | { class: [EntityClass](https://mikro-orm.io/api/core.md#EntityClass)\<Entity>; name?

<!-- -->

: string }) & { extends?

<!-- -->

: [EntityName](https://mikro-orm.io/api/core.md#EntityName)\<Base> } & { properties?

<!-- -->

: { \[ Key in keyof

<!-- -->

OmitBaseProps\<Entity, Base> as CleanKeys\<OmitBaseProps\<Entity, Base>, Key> ]-?: [EntitySchemaProperty](https://mikro-orm.io/api/core.md#EntitySchemaProperty)<[ExpandProperty](https://mikro-orm.io/api/core.md#ExpandProperty)\<NonNullable\<Entity\[Key]>>, Entity> } }

#### Type parameters

* **Entity**
* **Base** = never

### [**](#EntitySchemaProperty)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/metadata/EntitySchema.ts#L38)EntitySchemaProperty

**EntitySchemaProperty\<Target, Owner>: ({ kind: ReferenceKind.MANY\_TO\_ONE | m:1 } & TypeDef\<Target> & [ManyToOneOptions](https://mikro-orm.io/api/core/interface/ManyToOneOptions.md)\<Owner, Target>) | ({ kind: ReferenceKind.ONE\_TO\_ONE | 1:1 } & TypeDef\<Target> & [OneToOneOptions](https://mikro-orm.io/api/core/interface/OneToOneOptions.md)\<Owner, Target>) | ({ kind: ReferenceKind.ONE\_TO\_MANY | 1:m } & TypeDef\<Target> & [OneToManyOptions](https://mikro-orm.io/api/core/interface/OneToManyOptions.md)\<Owner, Target>) | ({ kind: ReferenceKind.MANY\_TO\_MANY | m:n } & TypeDef\<Target> & [ManyToManyOptions](https://mikro-orm.io/api/core/interface/ManyToManyOptions.md)\<Owner, Target>) | ({ kind: ReferenceKind.EMBEDDED | embedded } & EmbeddedTypeDef\<Target> & [EmbeddedOptions](https://mikro-orm.io/api/core/interface/EmbeddedOptions.md)\<Owner, Target> & [PropertyOptions](https://mikro-orm.io/api/core/interface/PropertyOptions.md)\<Owner>) | ({ enum: true } & [EnumOptions](https://mikro-orm.io/api/core/interface/EnumOptions.md)\<Owner>) | (TypeDef\<Target> & [PropertyOptions](https://mikro-orm.io/api/core/interface/PropertyOptions.md)\<Owner>)

#### Type parameters

* **Target**
* **Owner**

### [**](#EntityType)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1248)EntityType

**EntityType\<T>: T | LoadedEntityType\<T>

#### Type parameters

* **T**

### [**](#EntityValue)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L39)EntityValue

**EntityValue\<T>: T\[[EntityKey](https://mikro-orm.io/api/core.md#EntityKey)\<T>]

#### Type parameters

* **T**

### [**](#ExpandHint)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1239)ExpandHint

**ExpandHint\<T, L>: L | AddEager\<T>

#### Type parameters

* **T**
* **L**: string

### [**](#ExpandProperty)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1140)ExpandProperty

**ExpandProperty\<T>: T extends [Reference](https://mikro-orm.io/api/core/class/Reference.md)\<infer

<!-- -->

U> ? NonNullable\<U> : T extends [Collection](https://mikro-orm.io/api/core/class/Collection.md)\<infer

<!-- -->

U, any> ? NonNullable\<U> : T extends infer

<!-- -->

U\[] ? NonNullable\<U> : NonNullable\<T>

#### Type parameters

* **T**

### [**](#ExpandQuery)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L214)ExpandQuery

**ExpandQuery\<T>: T extends object ? T extends [Scalar](https://mikro-orm.io/api/core.md#Scalar) ? never : [FilterQuery](https://mikro-orm.io/api/core.md#FilterQuery)\<T> : [FilterValue](https://mikro-orm.io/api/core.md#FilterValue)\<T>

#### Type parameters

* **T**

### [**](#ExpandScalar)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L169)ExpandScalar

**ExpandScalar\<T>: null | (T extends string ? T | RegExp : T extends Date ? Date | string : T extends bigint ? bigint | string | number : T)

#### Type parameters

* **T**

### [**](#FilterItemValue)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L205)FilterItemValue

**FilterItemValue\<T>: T | [ExpandScalar](https://mikro-orm.io/api/core.md#ExpandScalar)\<T> | [Primary](https://mikro-orm.io/api/core.md#Primary)\<T>

#### Type parameters

* **T**

### [**](#FilterKey)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L41)FilterKey

**FilterKey\<T>: keyof

<!-- -->

[FilterQuery](https://mikro-orm.io/api/core.md#FilterQuery)\<T>

#### Type parameters

* **T**

### [**](#FilterObject)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L207)FilterObject

**FilterObject\<T>: { -readonly \[ K in [EntityKey](https://mikro-orm.io/api/core.md#EntityKey)\<T> ]?: [ExpandQuery](https://mikro-orm.io/api/core.md#ExpandQuery)<[ExpandProperty](https://mikro-orm.io/api/core.md#ExpandProperty)\<T\[K]>> | [FilterValue](https://mikro-orm.io/api/core.md#FilterValue)<[ExpandProperty](https://mikro-orm.io/api/core.md#ExpandProperty)\<T\[K]>> | null }

#### Type parameters

* **T**

### [**](#FilterOptions)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/drivers/IDatabaseDriver.ts#L102)FilterOptions

**FilterOptions: [Dictionary](https://mikro-orm.io/api/core.md#Dictionary)\<boolean | [Dictionary](https://mikro-orm.io/api/core.md#Dictionary)> | string\[] | boolean

### [**](#FilterQuery)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L222)FilterQuery

**FilterQuery\<T>: [ObjectQuery](https://mikro-orm.io/api/core.md#ObjectQuery)\<T> | NonNullable<[ExpandScalar](https://mikro-orm.io/api/core.md#ExpandScalar)<[Primary](https://mikro-orm.io/api/core.md#Primary)\<T>>> | NonNullable<[EntityProps](https://mikro-orm.io/api/core.md#EntityProps)\<T> & OperatorMap\<T>> | [FilterQuery](https://mikro-orm.io/api/core.md#FilterQuery)\<T>\[]

#### Type parameters

* **T**

### [**](#FilterValue)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L206)FilterValue

**FilterValue\<T>: OperatorMap<[FilterItemValue](https://mikro-orm.io/api/core.md#FilterItemValue)\<T>> | [FilterItemValue](https://mikro-orm.io/api/core.md#FilterItemValue)\<T> | [FilterItemValue](https://mikro-orm.io/api/core.md#FilterItemValue)\<T>\[] | null

#### Type parameters

* **T**

### [**](#FromEntityType)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1249)FromEntityType

**FromEntityType\<T>: T extends LoadedEntityType\<infer

<!-- -->

U> ? U : T

#### Type parameters

* **T**

### [**](#GetRepository)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L306)GetRepository

**GetRepository\<Entity, Fallback>: Entity\[typeof [EntityRepositoryType](https://mikro-orm.io/api/core.md#EntityRepositoryType)] extends [EntityRepository](https://mikro-orm.io/api/core/class/EntityRepository.md)\<any> | undefined ? NonNullable\<Entity\[typeof [EntityRepositoryType](https://mikro-orm.io/api/core.md#EntityRepositoryType)]> : Fallback

#### Type parameters

* **Entity**:
  <!-- -->
  {}
* **Fallback**

### [**](#Hidden)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L97)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L99)Hidden

**Hidden\<T>: T & [Hidden.Brand](https://mikro-orm.io/api/core/namespace/Hidden.md#Brand)

#### Type parameters

* **T** = unknown

### [**](#ImportsResolver)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L924)ImportsResolver

**ImportsResolver: (alias, basePath, extension, originFileName) => { name: string; path: string } | undefined

#### Type declaration

* * **(alias, basePath, extension, originFileName): { name: string; path: string } | undefined

  - #### Parameters

    * ##### alias: string
    * ##### basePath: string
    * ##### extension: .js |
    * ##### originFileName: string

    #### Returns { name: string; path: string } | undefined

### [**](#IndexCallback)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L479)IndexCallback

**IndexCallback\<T>: (table, columns, indexName) => string | [RawQueryFragment](https://mikro-orm.io/api/core/class/RawQueryFragment.md)

#### Type parameters

* **T**

#### Type declaration

* * **(table, columns, indexName): string | [RawQueryFragment](https://mikro-orm.io/api/core/class/RawQueryFragment.md)

  - #### Parameters

    * ##### table: TableName
    * ##### columns: Record\<PropertyName\<T>, string>
    * ##### indexName: string

    #### Returns string | [RawQueryFragment](https://mikro-orm.io/api/core/class/RawQueryFragment.md)

### [**](#InferEntity)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/entity/defineEntity.ts#L856)InferEntity

**InferEntity\<Schema>: Schema extends [EntitySchema](https://mikro-orm.io/api/core/class/EntitySchema.md)\<infer

<!-- -->

Entity, any> ? Entity : Schema extends [EntityClass](https://mikro-orm.io/api/core.md#EntityClass)\<infer

<!-- -->

Entity> ? Entity : Schema

#### Type parameters

* **Schema**

### [**](#InferEntityFromProperties)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/entity/defineEntity.ts#L798)InferEntityFromProperties

**InferEntityFromProperties\<Properties, PK>: { -readonly \[ K in keyof

<!-- -->

Properties ]: InferBuilderValue\<MaybeReturnType\<Properties\[K]>> } & { \[PrimaryKeyProp]?

<!-- -->

: PK extends undefined ? [InferPrimaryKey](https://mikro-orm.io/api/core.md#InferPrimaryKey)\<Properties> extends never ? never : IsUnion<[InferPrimaryKey](https://mikro-orm.io/api/core.md#InferPrimaryKey)\<Properties>> extends true ? [InferPrimaryKey](https://mikro-orm.io/api/core.md#InferPrimaryKey)\<Properties>\[] : [InferPrimaryKey](https://mikro-orm.io/api/core.md#InferPrimaryKey)\<Properties> : PK }

#### Type parameters

* **Properties**: Record\<string, any>
* **PK**: keyof
  <!-- -->
  Properties\[] | undefined = undefined

### [**](#InferPrimaryKey)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/entity/defineEntity.ts#L810)InferPrimaryKey

**InferPrimaryKey\<Properties>: { \[ K in keyof

<!-- -->

Properties ]: MaybeReturnType\<Properties\[K]> extends { \~options: { primary: true } } ? K : never }\[keyof

<!-- -->

Properties]

#### Type parameters

* **Properties**: Record\<string, any>

### [**](#IPrimaryKey)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L165)IPrimaryKey

**IPrimaryKey\<T>: T

#### Type parameters

* **T**: IPrimaryKeyValue = IPrimaryKeyValue

### [**](#IsSubset)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1194)IsSubset

**IsSubset\<T, U>: keyof

<!-- -->

U extends keyof

<!-- -->

T ? {} : [Dictionary](https://mikro-orm.io/api/core.md#Dictionary) extends U ? {} : { \[ K in keyof

<!-- -->

U as K extends keyof

<!-- -->

T ? never : CleanKeys\<U, K> ]: never }

#### Type parameters

* **T**
* **U**

### [**](#IsUnknown)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L56)IsUnknown

**IsUnknown\<T>: T extends unknown ? unknown extends T ? true : never : never

#### Type parameters

* **T**

### [**](#IType)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/types/Type.ts#L12)IType

**IType\<Runtime, Raw, Serialized>: Runtime & { \_\_raw?

<!-- -->

: Raw; \_\_runtime?

<!-- -->

: Runtime; \_\_serialized?

<!-- -->

: Serialized }

#### Type parameters

* **Runtime**
* **Raw**
* **Serialized** = Raw

### [**](#Loaded)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1261)Loaded

**Loaded\<T, L, F, E>: LoadedInternal\<T, L, F, E> & { \[\_\_\_loadedType]?

<!-- -->

: T }

Represents entity with its loaded relations (`populate` hint) and selected properties (`fields` hint).

***

#### Type parameters

* **T**
* **L**: string = never
* **F**: string = \*
* **E**: string = never

### [**](#LoggerNamespace)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/logging/Logger.ts#L34)LoggerNamespace

**LoggerNamespace: query | query-params | schema | discovery | info | deprecated

### [**](#LoggingOptions)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/logging/Logger.ts#L69)LoggingOptions

**LoggingOptions: Pick<[LogContext](https://mikro-orm.io/api/core/interface/LogContext.md), label | enabled | debugMode>

Logger options to modify format output and overrides, including a label and additional properties that can be accessed by custom loggers.

Differs from [LoggerOptions](https://mikro-orm.io/api/core/interface/LoggerOptions.md) in terms of how they are used; this type is primarily a public type meant to be used within methods like `em.find()`.

* **@example**

  ```
  await em.findOne(User, 1, { logger: { label: 'user middleware' } };
  // [query] (user middleware) select * from user where id = 1;
  ```

### [**](#MaybePromise)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L59)MaybePromise

**MaybePromise\<T>: T | Promise\<T>

#### Type parameters

* **T**

### [**](#MergeLoaded)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1227)MergeLoaded

**MergeLoaded\<T, U, P, F, E, R>: T extends [Loaded](https://mikro-orm.io/api/core.md#Loaded)\<U, infer

<!-- -->

PP, infer

<!-- -->

FF, infer

<!-- -->

EE> ? string extends FF ? [Loaded](https://mikro-orm.io/api/core.md#Loaded)\<T, P, F, AnyStringToNever\<EE> | E> : string extends P ? [Loaded](https://mikro-orm.io/api/core.md#Loaded)\<U, never, F | (FF & string), MergeExcludes\<F | (FF & string), EE | E>> : [Loaded](https://mikro-orm.io/api/core.md#Loaded)\<U, P | AnyStringToNever\<PP>, MergeFields\<F, AnyStringToNever\<FF>, P, PP>, MergeExcludes\<MergeFields\<F, AnyStringToNever\<FF>, P, PP>, (R extends true ? never : EE) | E>> : [Loaded](https://mikro-orm.io/api/core.md#Loaded)\<T, P, F>

#### Type parameters

* **T**
* **U**
* **P**: string
* **F**: string
* **E**: string
* **R**: boolean = false

### [**](#MergeSelected)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1208)MergeSelected

**MergeSelected\<T, U, F>: T extends [Loaded](https://mikro-orm.io/api/core.md#Loaded)\<infer

<!-- -->

TT, infer

<!-- -->

P, infer

<!-- -->

FF, infer

<!-- -->

E> ? IsNever\<Exclude\<E, F>> extends true ? [Loaded](https://mikro-orm.io/api/core.md#Loaded)\<TT, P, AnyStringToNever\<F> | AnyStringToNever\<FF>> : [Loaded](https://mikro-orm.io/api/core.md#Loaded)\<TT, AnyStringToNever\<P>, AnyStringToNever\<FF>, AnyStringToNever\<Exclude\<E, F>>> : T

#### Type parameters

* **T**
* **U**
* **F**: string

### [**](#MetadataProcessor)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1339)MetadataProcessor

**MetadataProcessor: (metadata, platform) => [MaybePromise](https://mikro-orm.io/api/core.md#MaybePromise)\<void>

#### Type declaration

* * **(metadata, platform): [MaybePromise](https://mikro-orm.io/api/core.md#MaybePromise)\<void>

  - #### Parameters

    * ##### metadata: [EntityMetadata](https://mikro-orm.io/api/core/class/EntityMetadata.md)\[]
    * ##### platform: [Platform](https://mikro-orm.io/api/core/class/Platform.md)

    #### Returns [MaybePromise](https://mikro-orm.io/api/core.md#MaybePromise)\<void>

### [**](#MigrateOptions)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L963)MigrateOptions

**MigrateOptions: { from?

<!-- -->

: string | number; migrations?

<!-- -->

: string\[]; to?

<!-- -->

: string | number; transaction?

<!-- -->

: [Transaction](https://mikro-orm.io/api/core.md#Transaction) }

#### Type declaration

* ##### optionalfrom?<!-- -->: string | number
* ##### optionalmigrations?<!-- -->: string\[]
* ##### optionalto?<!-- -->: string | number
* ##### optionaltransaction?<!-- -->: [Transaction](https://mikro-orm.io/api/core.md#Transaction)

### [**](#MigrationResult)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L964)MigrationResult

**MigrationResult: { code: string; diff: [MigrationDiff](https://mikro-orm.io/api/core/interface/MigrationDiff.md); fileName: string }

#### Type declaration

* ##### code: string
* ##### diff: [MigrationDiff](https://mikro-orm.io/api/core/interface/MigrationDiff.md)
* ##### fileName: string

### [**](#MigrationRow)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L965)MigrationRow

**MigrationRow: { executed\_at: Date; name: string }

#### Type declaration

* ##### executed\_at: Date
* ##### name: string

### [**](#MigrationsOptions)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/utils/Configuration.ts#L529)MigrationsOptions

**MigrationsOptions: { allOrNothing?

<!-- -->

: boolean; disableForeignKeys?

<!-- -->

: boolean; dropTables?

<!-- -->

: boolean; emit?

<!-- -->

: js | ts | cjs; fileName?

<!-- -->

: (timestamp, name) => string; generator?

<!-- -->

: [Constructor](https://mikro-orm.io/api/core.md#Constructor)<[IMigrationGenerator](https://mikro-orm.io/api/core/interface/IMigrationGenerator.md)>; glob?

<!-- -->

: string; migrationsList?

<!-- -->

: ([MigrationObject](https://mikro-orm.io/api/core/interface/MigrationObject.md) | [Constructor](https://mikro-orm.io/api/core.md#Constructor)\<Migration>)\[]; path?

<!-- -->

: string; pathTs?

<!-- -->

: string; safe?

<!-- -->

: boolean; silent?

<!-- -->

: boolean; snapshot?

<!-- -->

: boolean; snapshotName?

<!-- -->

: string; tableName?

<!-- -->

: string; transactional?

<!-- -->

: boolean }

#### Type declaration

* ##### optionalallOrNothing?<!-- -->: boolean

* ##### optionaldisableForeignKeys?<!-- -->: boolean

* ##### optionaldropTables?<!-- -->: boolean

* ##### optionalemit?<!-- -->: js | ts | cjs

* ##### optionalfileName?<!-- -->: (timestamp, name) => string

  * * **(timestamp, name): string

    - #### Parameters

      * ##### timestamp: string
      * ##### optionalname: string

      #### Returns string

* ##### optionalgenerator?<!-- -->: [Constructor](https://mikro-orm.io/api/core.md#Constructor)<[IMigrationGenerator](https://mikro-orm.io/api/core/interface/IMigrationGenerator.md)>

* ##### optionalglob?<!-- -->: string

* ##### optionalmigrationsList?<!-- -->: ([MigrationObject](https://mikro-orm.io/api/core/interface/MigrationObject.md) | [Constructor](https://mikro-orm.io/api/core.md#Constructor)\<Migration>)\[]

* ##### optionalpath?<!-- -->: string

* ##### optionalpathTs?<!-- -->: string

* ##### optionalsafe?<!-- -->: boolean

* ##### optionalsilent?<!-- -->: boolean

* ##### optionalsnapshot?<!-- -->: boolean

* ##### optionalsnapshotName?<!-- -->: string

* ##### optionaltableName?<!-- -->: string

* ##### optionaltransactional?<!-- -->: boolean

### [**](#MigratorEvent)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1037)MigratorEvent

**MigratorEvent: migrating | migrated | reverting | reverted

### [**](#New)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1279)New

**New\<T, P>: [Loaded](https://mikro-orm.io/api/core.md#Loaded)\<T, P>

#### Type parameters

* **T**
* **P**: string = string

### [**](#NoInfer)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L60)NoInfer

**NoInfer\<T>: \[T]\[T extends any ? 0 : never]

#### Type parameters

* **T**

### [**](#ObjectQuery)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L221)ObjectQuery

**ObjectQuery\<T>: OperatorMap\<T> & [FilterObject](https://mikro-orm.io/api/core.md#FilterObject)\<T>

#### Type parameters

* **T**

### [**](#Opt)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L77)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L79)Opt

**Opt\<T>: T & [Opt.Brand](https://mikro-orm.io/api/core/namespace/Opt.md#Brand)

#### Type parameters

* **T** = unknown

### [**](#Options)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/utils/Configuration.ts#L700)Options

**Options\<D, EM>: Pick<[MikroORMOptions](https://mikro-orm.io/api/core/interface/MikroORMOptions.md)\<D, EM>, Exclude\<keyof

<!-- -->

[MikroORMOptions](https://mikro-orm.io/api/core/interface/MikroORMOptions.md)\<D, EM>, keyof

<!-- -->

typeof Configuration.DEFAULTS>> & Partial<[MikroORMOptions](https://mikro-orm.io/api/core/interface/MikroORMOptions.md)\<D, EM>>

#### Type parameters

* **D**: [IDatabaseDriver](https://mikro-orm.io/api/core/interface/IDatabaseDriver.md) = [IDatabaseDriver](https://mikro-orm.io/api/core/interface/IDatabaseDriver.md)
* **EM**: D\[typeof [EntityManagerType](https://mikro-orm.io/api/core.md#EntityManagerType)] & [EntityManager](https://mikro-orm.io/api/core/class/EntityManager.md) = D\[typeof [EntityManagerType](https://mikro-orm.io/api/core.md#EntityManagerType)] & [EntityManager](https://mikro-orm.io/api/core/class/EntityManager.md)

### [**](#OrderDefinition)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/drivers/IDatabaseDriver.ts#L96)OrderDefinition

**OrderDefinition\<T>: ([QueryOrderMap](https://mikro-orm.io/api/core.md#QueryOrderMap)\<T> & { 0?

<!-- -->

: never }) | [QueryOrderMap](https://mikro-orm.io/api/core.md#QueryOrderMap)\<T>\[]

#### Type parameters

* **T**

### [**](#Populate)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1080)Populate

**Populate\<T, P>: readonly

<!-- -->

[AutoPath](https://mikro-orm.io/api/core.md#AutoPath)\<T, P, \`${[PopulatePath](https://mikro-orm.io/api/core/enum/PopulatePath.md)}\`>\[] | false

#### Type parameters

* **T**
* **P**: string = never

### [**](#PopulateOptions)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1082)PopulateOptions

**PopulateOptions\<T>: { all?

<!-- -->

: boolean; children?

<!-- -->

: [PopulateOptions](https://mikro-orm.io/api/core.md#PopulateOptions)\<T\[keyof

<!-- -->

T]>\[]; field: [EntityKey](https://mikro-orm.io/api/core.md#EntityKey)\<T>; filter?

<!-- -->

: boolean; joinType?

<!-- -->

: inner join | left join; strategy?

<!-- -->

: [LoadStrategy](https://mikro-orm.io/api/core/enum/LoadStrategy.md) }

#### Type parameters

* **T**

#### Type declaration

* ##### optionalall?<!-- -->: boolean
* ##### optionalchildren?<!-- -->: [PopulateOptions](https://mikro-orm.io/api/core.md#PopulateOptions)\<T\[keyof<!-- --> T]>\[]
* ##### field: [EntityKey](https://mikro-orm.io/api/core.md#EntityKey)\<T>
* ##### optionalfilter?<!-- -->: boolean
* ##### optionaljoinType?<!-- -->: inner join | left join
* ##### optionalstrategy?<!-- -->: [LoadStrategy](https://mikro-orm.io/api/core/enum/LoadStrategy.md)

### [**](#Primary)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L135)Primary

**Primary\<T>: IsAny\<T> extends true ? any : T extends { \[PrimaryKeyProp]?

<!-- -->

: infer

<!-- -->

PK } ? PK extends undefined ? Omit\<T, typeof [PrimaryKeyProp](https://mikro-orm.io/api/core.md#PrimaryKeyProp)> : PK extends keyof

<!-- -->

T ? ReadonlyPrimary\<UnwrapPrimary\<T\[PK]>> : PK extends keyof

<!-- -->

T\[] ? ReadonlyPrimary\<PrimaryPropToType\<T, PK>> : PK : T extends { \_id?

<!-- -->

: infer

<!-- -->

PK } ? ReadonlyPrimary\<PK> | string : T extends { id?

<!-- -->

: infer

<!-- -->

PK } ? ReadonlyPrimary\<PK> : T extends { uuid?

<!-- -->

: infer

<!-- -->

PK } ? ReadonlyPrimary\<PK> : T

#### Type parameters

* **T**

### [**](#QBFilterQuery)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L227)QBFilterQuery

**QBFilterQuery\<T>: [ObjectQuery](https://mikro-orm.io/api/core.md#ObjectQuery)\<T> | [Dictionary](https://mikro-orm.io/api/core.md#Dictionary)

#### Type parameters

* **T** = any

### [**](#QBQueryOrderMap)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/enums.ts#L100)QBQueryOrderMap

**QBQueryOrderMap\<T>: [QueryOrderMap](https://mikro-orm.io/api/core.md#QueryOrderMap)\<T> | [Dictionary](https://mikro-orm.io/api/core.md#Dictionary)

#### Type parameters

* **T**

### [**](#QueryOrderKeys)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/enums.ts#L94)QueryOrderKeys

**QueryOrderKeys\<T>: [QueryOrderKeysFlat](https://mikro-orm.io/api/core.md#QueryOrderKeysFlat) | [QueryOrderMap](https://mikro-orm.io/api/core.md#QueryOrderMap)\<T>

#### Type parameters

* **T**

### [**](#QueryOrderKeysFlat)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/enums.ts#L93)QueryOrderKeysFlat

**QueryOrderKeysFlat: [QueryOrder](https://mikro-orm.io/api/core/enum/QueryOrder.md) | [QueryOrderNumeric](https://mikro-orm.io/api/core/enum/QueryOrderNumeric.md) | \`${[QueryOrder](https://mikro-orm.io/api/core/enum/QueryOrder.md)}\`

### [**](#QueryOrderMap)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/enums.ts#L96)QueryOrderMap

**QueryOrderMap\<T>: { \[ K in [EntityKey](https://mikro-orm.io/api/core.md#EntityKey)\<T> ]?: [QueryOrderKeys](https://mikro-orm.io/api/core.md#QueryOrderKeys)<[ExpandProperty](https://mikro-orm.io/api/core.md#ExpandProperty)\<T\[K]>> }

#### Type parameters

* **T**

### [**](#Ref)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L420)Ref

**Ref\<T>: T extends any ? IsAny\<T> extends true ? [Reference](https://mikro-orm.io/api/core/class/Reference.md)\<T & object> : T extends [Scalar](https://mikro-orm.io/api/core.md#Scalar) ? [ScalarReference](https://mikro-orm.io/api/core/class/ScalarReference.md)\<T> : [EntityRef](https://mikro-orm.io/api/core.md#EntityRef)\<T & object> : never

Ref type represents a `Reference` instance, and adds the primary keys to its prototype automatically, so you can do `ref.id` instead of `ref.unwrap().id`. It resolves to either `ScalarRef` or `EntityRef`, based on the type argument.

***

#### Type parameters

* **T**

### [**](#Rel)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L404)Rel

**Rel\<T>: T

Identity type that can be used to get around issues with cycles in bidirectional relations. It will disable reflect-metadata inference.

***

#### Type parameters

* **T**

### [**](#RequiredEntityData)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L390)RequiredEntityData

**RequiredEntityData\<T, I, C>: { \[ K in keyof

<!-- -->

T as RequiredKeys\<T, K, I> ]: T\[K] | RequiredEntityDataProp\<T\[K], T, C> | [Primary](https://mikro-orm.io/api/core.md#Primary)\<T\[K]> } & { \[ K in keyof

<!-- -->

T as OptionalKeys\<T, K, I> ]?: T\[K] | RequiredEntityDataProp\<T\[K], T, C> | [Primary](https://mikro-orm.io/api/core.md#Primary)\<T\[K]> | null }

#### Type parameters

* **T**
* **I** = never
* **C**: boolean = false

### [**](#RequiredNullable)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L87)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L89)RequiredNullable

**RequiredNullable\<T>: (T & [RequiredNullable.Brand](https://mikro-orm.io/api/core/namespace/RequiredNullable.md#Brand)) | null

#### Type parameters

* **T** = never

### [**](#Scalar)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L167)Scalar

**Scalar: boolean | number | string | bigint | symbol | Date | RegExp | Uint8Array | { toHexString: any }

### [**](#ScalarRef)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L407)ScalarRef

**ScalarRef\<T>: [ScalarReference](https://mikro-orm.io/api/core/class/ScalarReference.md)\<T>

Alias for `ScalarReference` (see [Ref](https://mikro-orm.io/api/core.md#Ref)).

***

#### Type parameters

* **T**

### [**](#Selected)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1241)Selected

**Selected\<T, L, F>: { \[ K in keyof

<!-- -->

T as IsPrefixed\<T, K, L | F | AddEager\<T>> ]: LoadedProp\<NonNullable\<T\[K]>, Suffix\<K, L, true>, Suffix\<K, F, true>> | AddOptional\<T\[K]> } & { \[ K in keyof

<!-- -->

T as FunctionKeys\<T, K> ]: T\[K] } & { \[\_\_\_selectedType]?

<!-- -->

: T }

#### Type parameters

* **T**
* **L**: string = never
* **F**: string = \*

### [**](#Transaction)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/connections/Connection.ts#L191)Transaction

**Transaction\<T>: T

#### Type parameters

* **T** = any

### [**](#TransactionEventType)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/enums.ts#L202)TransactionEventType

**TransactionEventType: EventType.beforeTransactionStart | EventType.afterTransactionStart | EventType.beforeTransactionCommit | EventType.afterTransactionCommit | EventType.beforeTransactionRollback | EventType.afterTransactionRollback

### [**](#UmzugMigration)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L962)UmzugMigration

**UmzugMigration: { name: string; path?

<!-- -->

: string }

#### Type declaration

* ##### name: string
* ##### optionalpath?<!-- -->: string

### [**](#UnboxArray)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L1137)UnboxArray

**UnboxArray\<T>: T extends any\[] ? ArrayElement\<T> : T

#### Type parameters

* **T**

### [**](#UniversalPropertyKeys)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/entity/defineEntity.ts#L35)UniversalPropertyKeys

**UniversalPropertyKeys: keyof

<!-- -->

[PropertyOptions](https://mikro-orm.io/api/core/interface/PropertyOptions.md)\<any> | keyof

<!-- -->

[EnumOptions](https://mikro-orm.io/api/core/interface/EnumOptions.md)\<any> | keyof

<!-- -->

[EmbeddedOptions](https://mikro-orm.io/api/core/interface/EmbeddedOptions.md)\<any, any> | keyof

<!-- -->

[ReferenceOptions](https://mikro-orm.io/api/core/interface/ReferenceOptions.md)\<any, any> | keyof

<!-- -->

[ManyToOneOptions](https://mikro-orm.io/api/core/interface/ManyToOneOptions.md)\<any, any> | keyof

<!-- -->

[OneToManyOptions](https://mikro-orm.io/api/core/interface/OneToManyOptions.md)\<any, any> | keyof

<!-- -->

[OneToOneOptions](https://mikro-orm.io/api/core/interface/OneToOneOptions.md)\<any, any> | keyof

<!-- -->

[ManyToManyOptions](https://mikro-orm.io/api/core/interface/ManyToManyOptions.md)\<any, any>

## Variables<!-- -->[**](#Variables)

### [**](#ARRAY_OPERATORS)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/enums.ts#L55)constARRAY\_OPERATORS

**ARRAY\_OPERATORS: string\[] =

<!-- -->

...

### [**](#Config)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L75)constConfig

**Config: typeof [Config](https://mikro-orm.io/api/core.md#Config) =

<!-- -->

...

### [**](#EagerProps)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L73)constEagerProps

**EagerProps: typeof [EagerProps](https://mikro-orm.io/api/core.md#EagerProps) =

<!-- -->

...

### [**](#EntityManagerType)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/drivers/IDatabaseDriver.ts#L16)constEntityManagerType

**EntityManagerType: typeof [EntityManagerType](https://mikro-orm.io/api/core.md#EntityManagerType) =

<!-- -->

...

### [**](#EntityRepositoryType)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L70)constEntityRepositoryType

**EntityRepositoryType: typeof [EntityRepositoryType](https://mikro-orm.io/api/core.md#EntityRepositoryType) =

<!-- -->

...

### [**](#EventTypeMap)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/enums.ts#L197)constEventTypeMap

**EventTypeMap: Record<[EventType](https://mikro-orm.io/api/core/enum/EventType.md), number> =

<!-- -->

...

### [**](#HiddenProps)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L74)constHiddenProps

**HiddenProps: typeof [HiddenProps](https://mikro-orm.io/api/core.md#HiddenProps) =

<!-- -->

...

### [**](#JSON_KEY_OPERATORS)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/enums.ts#L67)constJSON\_KEY\_OPERATORS

**JSON\_KEY\_OPERATORS: string\[] =

<!-- -->

...

### [**](#JsonProperty)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/platforms/Platform.ts#L40)constJsonProperty

**JsonProperty: typeof [JsonProperty](https://mikro-orm.io/api/core.md#JsonProperty) =

<!-- -->

...

### [**](#ObjectBindingPattern)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/utils/Utils.ts#L27)constObjectBindingPattern

**ObjectBindingPattern: typeof [ObjectBindingPattern](https://mikro-orm.io/api/core.md#ObjectBindingPattern) =

<!-- -->

...

### [**](#OptionalProps)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L72)constOptionalProps

**OptionalProps: typeof [OptionalProps](https://mikro-orm.io/api/core.md#OptionalProps) =

<!-- -->

...

### [**](#p)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/entity/defineEntity.ts#L637)constp

**p: { array: \<T>(toJsValue, toDbValue) => UniversalPropertyOptionsBuilder\<T\[], [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; bigint: \<Mode>(mode) => UniversalPropertyOptionsBuilder\<JSTypeByMode\<Mode> & {}, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; blob: () => UniversalPropertyOptionsBuilder\<NonNullable\<null | Uint8Array\<ArrayBufferLike> | Buffer\<ArrayBufferLike>>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; boolean: () => UniversalPropertyOptionsBuilder\<NonNullable\<undefined | null | boolean>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; character: () => UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; date: () => UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; datetime: (length) => UniversalPropertyOptionsBuilder\<Date, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; decimal: \<Mode>(mode) => UniversalPropertyOptionsBuilder\<NonNullable\<JSTypeByMode\<Mode>>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; double: () => UniversalPropertyOptionsBuilder\<NonNullable\<string | number>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; embedded: \<Target>(target) => UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target extends T\[] ? T : Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForEmbeddedOptions>; enum: \<T>(items) => UniversalPropertyOptionsBuilder\<T extends () => [Dictionary](https://mikro-orm.io/api/core.md#Dictionary) ? ValueOf\<ReturnType\<T\<T>>> : T extends Value\[] ? Value : T, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForEnumOptions>; enumArray: () => UniversalPropertyOptionsBuilder<(string | number)\[], [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; float: () => UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; formula: \<T>(formula) => UniversalPropertyOptionsBuilder\<T, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; integer: () => UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; interval: () => UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; json: \<T>() => UniversalPropertyOptionsBuilder\<T, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; manyToMany: \<Target>(target) => UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md) & { kind: m:n }, IncludeKeysForManyToManyOptions>; manyToOne: \<Target>(target) => UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md) & { kind: m:1 }, IncludeKeysForManyToOneOptions>; mediumint: () => UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; oneToMany: \<Target>(target) => OneToManyOptionsBuilderOnlyMappedBy<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>>; oneToOne: \<Target>(target) => UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md) & { kind: 1:1 }, IncludeKeysForOneToOneOptions>; smallint: () => UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; string: () => UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; text: () => UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; time: (length) => UniversalPropertyOptionsBuilder\<any, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; tinyint: () => UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; type: \<T>(type) => UniversalPropertyOptionsBuilder\<InferPropertyValueType\<T>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; uint8array: () => UniversalPropertyOptionsBuilder\<Uint8Array\<ArrayBufferLike>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; unknown: () => UniversalPropertyOptionsBuilder<{}, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>; uuid: () => UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty> } =

<!-- -->

...

#### Type declaration

* ##### array: \<T>(toJsValue, toDbValue) => UniversalPropertyOptionsBuilder\<T\[], [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **\<T>(toJsValue, toDbValue): UniversalPropertyOptionsBuilder\<T\[], [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Parameters

      * ##### toJsValue: (i) => T = <!-- -->...
      *
        ##### toDbValue: (i) => string = <!-- -->...


      #### Returns UniversalPropertyOptionsBuilder\<T\[], [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### bigint: \<Mode>(mode) => UniversalPropertyOptionsBuilder\<JSTypeByMode\<Mode> & {}, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **\<Mode>(mode): UniversalPropertyOptionsBuilder\<JSTypeByMode\<Mode> & {}, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Parameters

      * ##### optionalmode: Mode

      #### Returns UniversalPropertyOptionsBuilder\<JSTypeByMode\<Mode> & {}, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### blob: () => UniversalPropertyOptionsBuilder\<NonNullable\<null | Uint8Array\<ArrayBufferLike> | Buffer\<ArrayBufferLike>>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<NonNullable\<null | Uint8Array\<ArrayBufferLike> | Buffer\<ArrayBufferLike>>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<NonNullable\<null | Uint8Array\<ArrayBufferLike> | Buffer\<ArrayBufferLike>>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### boolean: () => UniversalPropertyOptionsBuilder\<NonNullable\<undefined | null | boolean>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<NonNullable\<undefined | null | boolean>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<NonNullable\<undefined | null | boolean>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### character: () => UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### date: () => UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### datetime: (length) => UniversalPropertyOptionsBuilder\<Date, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(length): UniversalPropertyOptionsBuilder\<Date, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Parameters

      * ##### optionallength: number

      #### Returns UniversalPropertyOptionsBuilder\<Date, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### decimal: \<Mode>(mode) => UniversalPropertyOptionsBuilder\<NonNullable\<JSTypeByMode\<Mode>>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **\<Mode>(mode): UniversalPropertyOptionsBuilder\<NonNullable\<JSTypeByMode\<Mode>>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Parameters

      * ##### optionalmode: Mode

      #### Returns UniversalPropertyOptionsBuilder\<NonNullable\<JSTypeByMode\<Mode>>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### double: () => UniversalPropertyOptionsBuilder\<NonNullable\<string | number>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<NonNullable\<string | number>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<NonNullable\<string | number>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### embedded: \<Target>(target) => UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target extends T\[] ? T : Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForEmbeddedOptions>

  * * **\<Target>(target): UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target extends T\[] ? T : Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForEmbeddedOptions>

    - #### Parameters

      * ##### target: Target

      #### Returns UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target extends T\[] ? T : Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForEmbeddedOptions>

* ##### enum: \<T>(items) => UniversalPropertyOptionsBuilder\<T extends () => [Dictionary](https://mikro-orm.io/api/core.md#Dictionary) ? ValueOf\<ReturnType\<T\<T>>> : T extends Value\[] ? Value : T, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForEnumOptions>

  * * **\<T>(items): UniversalPropertyOptionsBuilder\<T extends () => [Dictionary](https://mikro-orm.io/api/core.md#Dictionary) ? ValueOf\<ReturnType\<T\<T>>> : T extends Value\[] ? Value : T, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForEnumOptions>

    - #### Parameters

      * ##### optionalitems: T

      #### Returns UniversalPropertyOptionsBuilder\<T extends () => [Dictionary](https://mikro-orm.io/api/core.md#Dictionary) ? ValueOf\<ReturnType\<T\<T>>> : T extends Value\[] ? Value : T, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForEnumOptions>

* ##### enumArray: () => UniversalPropertyOptionsBuilder<(string | number)\[], [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder<(string | number)\[], [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder<(string | number)\[], [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### float: () => UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### formula: \<T>(formula) => UniversalPropertyOptionsBuilder\<T, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **\<T>(formula): UniversalPropertyOptionsBuilder\<T, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Parameters

      * ##### formula: string | (alias) => string


      #### Returns UniversalPropertyOptionsBuilder\<T, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### integer: () => UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### interval: () => UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### json: \<T>() => UniversalPropertyOptionsBuilder\<T, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **\<T>(): UniversalPropertyOptionsBuilder\<T, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<T, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### manyToMany: \<Target>(target) => UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md) & { kind: m:n }, IncludeKeysForManyToManyOptions>

  * * **\<Target>(target): UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md) & { kind: m:n }, IncludeKeysForManyToManyOptions>

    - #### Parameters

      * ##### target: Target

      #### Returns UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md) & { kind: m:n }, IncludeKeysForManyToManyOptions>

* ##### manyToOne: \<Target>(target) => UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md) & { kind: m:1 }, IncludeKeysForManyToOneOptions>

  * * **\<Target>(target): UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md) & { kind: m:1 }, IncludeKeysForManyToOneOptions>

    - #### Parameters

      * ##### target: Target

      #### Returns UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md) & { kind: m:1 }, IncludeKeysForManyToOneOptions>

* ##### mediumint: () => UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### oneToMany: \<Target>(target) => OneToManyOptionsBuilderOnlyMappedBy<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>>

  * * **\<Target>(target): OneToManyOptionsBuilderOnlyMappedBy<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>>

    - #### Parameters

      * ##### target: Target

      #### Returns OneToManyOptionsBuilderOnlyMappedBy<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>>

* ##### oneToOne: \<Target>(target) => UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md) & { kind: 1:1 }, IncludeKeysForOneToOneOptions>

  * * **\<Target>(target): UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md) & { kind: 1:1 }, IncludeKeysForOneToOneOptions>

    - #### Parameters

      * ##### target: Target

      #### Returns UniversalPropertyOptionsBuilder<[InferEntity](https://mikro-orm.io/api/core.md#InferEntity)\<Target>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md) & { kind: 1:1 }, IncludeKeysForOneToOneOptions>

* ##### smallint: () => UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### string: () => UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### text: () => UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### time: (length) => UniversalPropertyOptionsBuilder\<any, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(length): UniversalPropertyOptionsBuilder\<any, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Parameters

      * ##### optionallength: number

      #### Returns UniversalPropertyOptionsBuilder\<any, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### tinyint: () => UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<number, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### type: \<T>(type) => UniversalPropertyOptionsBuilder\<InferPropertyValueType\<T>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **\<T>(type): UniversalPropertyOptionsBuilder\<InferPropertyValueType\<T>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Parameters

      * ##### type: T

      #### Returns UniversalPropertyOptionsBuilder\<InferPropertyValueType\<T>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### uint8array: () => UniversalPropertyOptionsBuilder\<Uint8Array\<ArrayBufferLike>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<Uint8Array\<ArrayBufferLike>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<Uint8Array\<ArrayBufferLike>, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### unknown: () => UniversalPropertyOptionsBuilder<{}, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder<{}, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder<{}, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

* ##### uuid: () => UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

  * * **(): UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

    - #### Returns UniversalPropertyOptionsBuilder\<string, [EmptyOptions](https://mikro-orm.io/api/core/interface/EmptyOptions.md), IncludeKeysForProperty>

### [**](#PrimaryKeyProp)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/typings.ts#L71)constPrimaryKeyProp

**PrimaryKeyProp: typeof [PrimaryKeyProp](https://mikro-orm.io/api/core.md#PrimaryKeyProp) =

<!-- -->

...

### [**](#SCALAR_TYPES)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/enums.ts#L120)constSCALAR\_TYPES

**SCALAR\_TYPES: string\[] =

<!-- -->

...

### [**](#t)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/types/index.ts#L60)constt

**t: { array: typeof [ArrayType](https://mikro-orm.io/api/core/class/ArrayType.md); bigint: typeof [BigIntType](https://mikro-orm.io/api/core/class/BigIntType.md); blob: typeof [BlobType](https://mikro-orm.io/api/core/class/BlobType.md); boolean: typeof [BooleanType](https://mikro-orm.io/api/core/class/BooleanType.md); character: typeof [CharacterType](https://mikro-orm.io/api/core/class/CharacterType.md); date: typeof [DateType](https://mikro-orm.io/api/core/class/DateType.md); datetime: typeof [DateTimeType](https://mikro-orm.io/api/core/class/DateTimeType.md); decimal: typeof [DecimalType](https://mikro-orm.io/api/core/class/DecimalType.md); double: typeof [DoubleType](https://mikro-orm.io/api/core/class/DoubleType.md); enum: typeof [EnumType](https://mikro-orm.io/api/core/class/EnumType.md); enumArray: typeof [EnumArrayType](https://mikro-orm.io/api/core/class/EnumArrayType.md); float: typeof [FloatType](https://mikro-orm.io/api/core/class/FloatType.md); integer: typeof [IntegerType](https://mikro-orm.io/api/core/class/IntegerType.md); interval: typeof [IntervalType](https://mikro-orm.io/api/core/class/IntervalType.md); json: typeof [JsonType](https://mikro-orm.io/api/core/class/JsonType.md); mediumint: typeof [MediumIntType](https://mikro-orm.io/api/core/class/MediumIntType.md); smallint: typeof [SmallIntType](https://mikro-orm.io/api/core/class/SmallIntType.md); string: typeof [StringType](https://mikro-orm.io/api/core/class/StringType.md); text: typeof [TextType](https://mikro-orm.io/api/core/class/TextType.md); time: typeof [TimeType](https://mikro-orm.io/api/core/class/TimeType.md); tinyint: typeof [TinyIntType](https://mikro-orm.io/api/core/class/TinyIntType.md); uint8array: typeof [Uint8ArrayType](https://mikro-orm.io/api/core/class/Uint8ArrayType.md); unknown: typeof [UnknownType](https://mikro-orm.io/api/core/class/UnknownType.md); uuid: typeof [UuidType](https://mikro-orm.io/api/core/class/UuidType.md) } =

<!-- -->

types

#### Type declaration

* ##### readonlyarray: typeof [ArrayType](https://mikro-orm.io/api/core/class/ArrayType.md)
* ##### readonlybigint: typeof [BigIntType](https://mikro-orm.io/api/core/class/BigIntType.md)
* ##### readonlyblob: typeof [BlobType](https://mikro-orm.io/api/core/class/BlobType.md)
* ##### readonlyboolean: typeof [BooleanType](https://mikro-orm.io/api/core/class/BooleanType.md)
* ##### readonlycharacter: typeof [CharacterType](https://mikro-orm.io/api/core/class/CharacterType.md)
* ##### readonlydate: typeof [DateType](https://mikro-orm.io/api/core/class/DateType.md)
* ##### readonlydatetime: typeof [DateTimeType](https://mikro-orm.io/api/core/class/DateTimeType.md)
* ##### readonlydecimal: typeof [DecimalType](https://mikro-orm.io/api/core/class/DecimalType.md)
* ##### readonlydouble: typeof [DoubleType](https://mikro-orm.io/api/core/class/DoubleType.md)
* ##### readonlyenum: typeof [EnumType](https://mikro-orm.io/api/core/class/EnumType.md)
* ##### readonlyenumArray: typeof [EnumArrayType](https://mikro-orm.io/api/core/class/EnumArrayType.md)
* ##### readonlyfloat: typeof [FloatType](https://mikro-orm.io/api/core/class/FloatType.md)
* ##### readonlyinteger: typeof [IntegerType](https://mikro-orm.io/api/core/class/IntegerType.md)
* ##### readonlyinterval: typeof [IntervalType](https://mikro-orm.io/api/core/class/IntervalType.md)
* ##### readonlyjson: typeof [JsonType](https://mikro-orm.io/api/core/class/JsonType.md)
* ##### readonlymediumint: typeof [MediumIntType](https://mikro-orm.io/api/core/class/MediumIntType.md)
* ##### readonlysmallint: typeof [SmallIntType](https://mikro-orm.io/api/core/class/SmallIntType.md)
* ##### readonlystring: typeof [StringType](https://mikro-orm.io/api/core/class/StringType.md)
* ##### readonlytext: typeof [TextType](https://mikro-orm.io/api/core/class/TextType.md)
* ##### readonlytime: typeof [TimeType](https://mikro-orm.io/api/core/class/TimeType.md)
* ##### readonlytinyint: typeof [TinyIntType](https://mikro-orm.io/api/core/class/TinyIntType.md)
* ##### readonlyuint8array: typeof [Uint8ArrayType](https://mikro-orm.io/api/core/class/Uint8ArrayType.md)
* ##### readonlyunknown: typeof [UnknownType](https://mikro-orm.io/api/core/class/UnknownType.md)
* ##### readonlyuuid: typeof [UuidType](https://mikro-orm.io/api/core/class/UuidType.md)

### [**](#types)[**](https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/types/index.ts#L33)consttypes

**types: { array: typeof [ArrayType](https://mikro-orm.io/api/core/class/ArrayType.md); bigint: typeof [BigIntType](https://mikro-orm.io/api/core/class/BigIntType.md); blob: typeof [BlobType](https://mikro-orm.io/api/core/class/BlobType.md); boolean: typeof [BooleanType](https://mikro-orm.io/api/core/class/BooleanType.md); character: typeof [CharacterType](https://mikro-orm.io/api/core/class/CharacterType.md); date: typeof [DateType](https://mikro-orm.io/api/core/class/DateType.md); datetime: typeof [DateTimeType](https://mikro-orm.io/api/core/class/DateTimeType.md); decimal: typeof [DecimalType](https://mikro-orm.io/api/core/class/DecimalType.md); double: typeof [DoubleType](https://mikro-orm.io/api/core/class/DoubleType.md); enum: typeof [EnumType](https://mikro-orm.io/api/core/class/EnumType.md); enumArray: typeof [EnumArrayType](https://mikro-orm.io/api/core/class/EnumArrayType.md); float: typeof [FloatType](https://mikro-orm.io/api/core/class/FloatType.md); integer: typeof [IntegerType](https://mikro-orm.io/api/core/class/IntegerType.md); interval: typeof [IntervalType](https://mikro-orm.io/api/core/class/IntervalType.md); json: typeof [JsonType](https://mikro-orm.io/api/core/class/JsonType.md); mediumint: typeof [MediumIntType](https://mikro-orm.io/api/core/class/MediumIntType.md); smallint: typeof [SmallIntType](https://mikro-orm.io/api/core/class/SmallIntType.md); string: typeof [StringType](https://mikro-orm.io/api/core/class/StringType.md); text: typeof [TextType](https://mikro-orm.io/api/core/class/TextType.md); time: typeof [TimeType](https://mikro-orm.io/api/core/class/TimeType.md); tinyint: typeof [TinyIntType](https://mikro-orm.io/api/core/class/TinyIntType.md); uint8array: typeof [Uint8ArrayType](https://mikro-orm.io/api/core/class/Uint8ArrayType.md); unknown: typeof [UnknownType](https://mikro-orm.io/api/core/class/UnknownType.md); uuid: typeof [UuidType](https://mikro-orm.io/api/core/class/UuidType.md) } =

<!-- -->

...

#### Type declaration

* ##### readonlyarray: typeof [ArrayType](https://mikro-orm.io/api/core/class/ArrayType.md)
* ##### readonlybigint: typeof [BigIntType](https://mikro-orm.io/api/core/class/BigIntType.md)
* ##### readonlyblob: typeof [BlobType](https://mikro-orm.io/api/core/class/BlobType.md)
* ##### readonlyboolean: typeof [BooleanType](https://mikro-orm.io/api/core/class/BooleanType.md)
* ##### readonlycharacter: typeof [CharacterType](https://mikro-orm.io/api/core/class/CharacterType.md)
* ##### readonlydate: typeof [DateType](https://mikro-orm.io/api/core/class/DateType.md)
* ##### readonlydatetime: typeof [DateTimeType](https://mikro-orm.io/api/core/class/DateTimeType.md)
* ##### readonlydecimal: typeof [DecimalType](https://mikro-orm.io/api/core/class/DecimalType.md)
* ##### readonlydouble: typeof [DoubleType](https://mikro-orm.io/api/core/class/DoubleType.md)
* ##### readonlyenum: typeof [EnumType](https://mikro-orm.io/api/core/class/EnumType.md)
* ##### readonlyenumArray: typeof [EnumArrayType](https://mikro-orm.io/api/core/class/EnumArrayType.md)
* ##### readonlyfloat: typeof [FloatType](https://mikro-orm.io/api/core/class/FloatType.md)
* ##### readonlyinteger: typeof [IntegerType](https://mikro-orm.io/api/core/class/IntegerType.md)
* ##### readonlyinterval: typeof [IntervalType](https://mikro-orm.io/api/core/class/IntervalType.md)
* ##### readonlyjson: typeof [JsonType](https://mikro-orm.io/api/core/class/JsonType.md)
* ##### readonlymediumint: typeof [MediumIntType](https://mikro-orm.io/api/core/class/MediumIntType.md)
* ##### readonlysmallint: typeof [SmallIntType](https://mikro-orm.io/api/core/class/SmallIntType.md)
* ##### readonlystring: typeof [StringType](https://mikro-orm.io/api/core/class/StringType.md)
* ##### readonlytext: typeof [TextType](https://mikro-orm.io/api/core/class/TextType.md)
* ##### readonlytime: typeof [TimeType](https://mikro-orm.io/api/core/class/TimeType.md)
* ##### readonlytinyint: typeof [TinyIntType](https://mikro-orm.io/api/core/class/TinyIntType.md)
* ##### readonlyuint8array: typeof [Uint8ArrayType](https://mikro-orm.io/api/core/class/Uint8ArrayType.md)
* ##### readonlyunknown: typeof [UnknownType](https://mikro-orm.io/api/core/class/UnknownType.md)
* ##### readonlyuuid: typeof [UuidType](https://mikro-orm.io/api/core/class/UuidType.md)