Skip to content

@joakimbugge/mikroorm-seeder


@joakimbugge/mikroorm-seeder / create

Function: create()

Call Signature

ts
function create<T>(EntityClass, options?): Promise<T>;

Defined in: seed/creator.ts:189

Type Parameters

T

T extends object

Parameters

EntityClass

EntityConstructor<T>

options?

CreateOptions<T>

Returns

Promise<T>

Call Signature

ts
function create<T>(EntityClasses, context?): Promise<MapToInstances<T>>;

Defined in: seed/creator.ts:193

Type Parameters

T

T extends readonly EntityConstructor[]

Parameters

EntityClasses

[...T[]]

context?

SeedContext

Returns

Promise<MapToInstances<T>>

Released under the MIT License.