Skip to content

@joakimbugge/mikroorm-seeder


@joakimbugge/mikroorm-seeder / SeedContext

Interface: SeedContext

Defined in: seed/registry.ts:10

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

Extended by

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.


relations?

ts
optional relations?: boolean;

Defined in: seed/registry.ts:20

Set to false to skip automatic relation seeding.

Default

ts
true

Released under the MIT License.