Skip to content
From 0.5.0 the packages continue as @cqrs-ddd, documented at aristoteliss.github.io/ddd-cqrs; NestJS applications add @cqrs-ddd/nestjs. This site documents the 0.4.x line.

setPersistenceDialect

setPersistenceDialect(dialect): void

Defined in: packages/ddd-core/persistence/persistence-dialect.ts:30

Registers the dialect that @MapPersistenceErrors and @PersistedWrite use when their options name none. Call it once at the composition root, after the ORM is initialized; undefined removes it.

IPersistenceDialect | undefined

void

setPersistenceDialect(new MikroOrmDialect(orm));