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