@joakimbugge/mikroorm-seeder / SaveManyOptions
Interface: SaveManyOptions<T>
Defined in: seed/persist.ts:17
Context passed through a seed operation. Available inside factory callbacks and SeederInterface.run.
Extends
SaveOptions<T>
Type Parameters
T
T extends EntityInstance = EntityInstance
Properties
count
ts
count: number;Defined in: seed/persist.ts:18
em
ts
em: EntityManager;Defined in: seed/persist.ts:13
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/persist.ts:14