Skip to content

@joakimbugge/typeorm-seeder


@joakimbugge/typeorm-seeder / CreateOptions

Interface: CreateOptions<T>

Defined in: packages/seeder/src/seed/creators/create.ts:12

Base options for the single-class create overload.

Extends

  • Omit<SeedContext, "previous">

Type Parameters

T

T extends EntityInstance

Properties

relations?

ts
optional relations?: boolean;

Defined in: packages/seeder/src/seed/registry.ts:16

Set to false to skip automatic relation seeding. Scalar and embedded properties are still seeded; only relation properties decorated with a bare @Seed() are skipped.

Default

ts
true

Inherited from

ts
Omit.relations

values?

ts
optional values?: SeedValues<T>;

Defined in: packages/seeder/src/seed/creators/create.ts:13

Released under the MIT License.