Skip to content

@joakimbugge/mikroorm-seeder


@joakimbugge/mikroorm-seeder / SeedContext

Type Alias: SeedContext

ts
type SeedContext = BaseSeedContext & object;

Defined in: packages/mikroorm-seeder/src/seed/context.ts:5

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

Type Declaration

em?

ts
optional em?: EntityManager;

The MikroORM EntityManager. Automatically set by save/saveMany calls. Also available in factory callbacks — useful for looking up existing entities.

Released under the MIT License.