fetchModelResources

Function

Given an item, and a list of resource name/prop pairs, fetch the resources and return as an object for the IModel

  • fetchModelResources(item: IItem, resourceNamePairs: [key: string]: string , requestOptions: IRequestOptions) : Promise<Record<stringany>>

Parameters

Parameter Type Default Notes
item Required IItem
resourceNamePairs Required [key: string]: string
requestOptions Required IRequestOptions

Available requestOptions

Property Type Notes

Returns

{Promise<Record<string, any>>}

Promise<Record<stringany>>
Property Type Notes

Function defined in common/src/models/index.ts:253