Function: usingDocument()
usingDocument<
I
,Deserialized
,Data
>(data
):Data
&object
Append the JSON:API document object to data object.
Use it as the parameter of allUsing
and oneUsing
runners.
Type parameters
• I extends ModelInstance
• Deserialized extends JsonApiDeserializedData
<I
>
• Data extends AllData
<any
, Deserialized
, I
> | OneData
<any
, Deserialized
, I
>
Parameters
• data: Data
Returns
Data
& object