Function: makeQueryRelationLoader()
makeQueryRelationLoader<
RawData
,Data
,Deserialized
,C
>(action
,options
): <I
>(instances
, ...relations
) =>Promise
<void
>
Type parameters
• RawData
• Data
• Deserialized extends DeserializedData
<ModelInstance
>
• C extends ConsumeAdapter
<RawData
, Data
> & ConsumeDeserializer
<NonNullable
<Data
>, Deserialized
>
Parameters
• action: ActionFactory
<[], C
, object
>
• options: QueryRelationLoaderOptions
= {}
Returns
Function
Type parameters
• I extends ModelInstance
Parameters
• instances: Arrayable
<I
>
• ...relations: ArrayableVariadic
<ModelRelationDotKey
<I
>>
Returns
Promise
<void
>
Source
packages/core/src/model/relations/makeQueryRelationLoader.ts:19