Skip to main content

Function: makeQueryModelLoader()

makeQueryModelLoader<RawData, Data, Deserialized, C, E>(action, options): <I>(instances, ...relations) => Promise<void>

Type parameters

RawData

Data

Deserialized extends DeserializedData <ModelInstance>

C extends ConsumeAdapter<RawData, Data> & ConsumeDeserializer<NonNullable<Data>, Deserialized>

E extends object

Parameters

action: ActionFactory <[], C, E>

options: QueryModelLoaderOptions<RawData, Data, Deserialized, C, E>= {}

Returns

Function

Type parameters

I extends ModelInstance

Parameters

instances: Arrayable<I>

• ...relations: ArrayableVariadic <ModelRelationDotKey<I>>

Returns

Promise<void>

Source

packages/core/src/model/relations/makeQueryModelLoader.ts:196