@joakimbugge/mikroorm-seeder / CreateOptions
Interface: CreateOptions<T>
Defined in: seed/creator.ts:16
Context passed through a seed operation. Available inside factory callbacks and SeederInterface.run.
Extends
Type Parameters
T
T extends EntityInstance
Properties
em?
ts
optional em?: EntityManager<IDatabaseDriver<Connection>>;Defined in: seed/registry.ts:15
The MikroORM EntityManager. Automatically set by save/saveMany calls. Also available in factory callbacks — useful for looking up existing entities.
Inherited from
relations?
ts
optional relations?: boolean;Defined in: seed/registry.ts:20
Set to false to skip automatic relation seeding.
Default
ts
trueInherited from
values?
ts
optional values?: SeedValues<T>;Defined in: seed/creator.ts:17