Skip to content

@joakimbugge/mikroorm-seeder


@joakimbugge/mikroorm-seeder / CreateManyOptions

Interface: CreateManyOptions<T>

Defined in: seed/creator.ts:20

Context passed through a seed operation. Available inside factory callbacks and SeederInterface.run.

Extends

Type Parameters

T

T extends EntityInstance = EntityInstance

Properties

count

ts
count: number;

Defined in: seed/creator.ts:21


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

SeedContext.em


relations?

ts
optional relations?: boolean;

Defined in: seed/registry.ts:20

Set to false to skip automatic relation seeding.

Default

ts
true

Inherited from

SeedContext.relations


values?

ts
optional values?: SeedValues<T>;

Defined in: seed/creator.ts:22

Released under the MIT License.