upsertModelResources
Takes an IModel and an array of resources and upserts them to the backing item. Then searches for the resources that were upserted and attaches them to the model, which is returned.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
model Required | IModel | ||
resources Required | Array<{
|
||
requestOptions Required | IUserRequestOptions |
Available requestOptions
Property | Type | Notes |
---|
Returns
{Promise
Function defined in common/src/models/index.ts:184