Function: fieldsFor()
fieldsFor<
C
,M
>(model
, ...fieldset
): (action
) =>Promise
<Action
<Awaited
<C
> &object
,object
>>
Select the given JSON:API fieldsets for the given model. The new fieldsets will be merged with the previous ones.
Type parameters
• C extends object
• M extends Model
Parameters
• model: M
• ...fieldset: ArrayableVariadic
<ModelKey
<M
>>
Returns
Function
Parameters
• action: Action
<C
>
Returns
Promise
<Action
<Awaited
<C
> & object
, object
>>