@joakimbugge/typeorm-seeder / SeederInterface
Interface: SeederInterface
Defined in: seeder/decorator.ts:11
Interface that seeder classes must implement.
The run method receives the seed context (which includes the DataSource when called via runSeeders) and performs the seeding logic — typically by calling seed().save() or other seeding utilities.
Methods
run()
ts
run(context): Promise<unknown>;Defined in: seeder/decorator.ts:12
Parameters
context
Returns
Promise<unknown>