getModel

Function

Gets the full item/data model for an item

  • getModel(id: string, requestOptions: IRequestOptions) : Promise<IModel>

Parameters

Parameter Type Default Notes
id Required string

Id of the item to fetch

requestOptions Required IRequestOptions

Available requestOptions

Property Type Notes

Returns

Promise<IModel>
Property Type Notes
item IItem
data Optional [key: string]: any

Function defined in packages/common/src/items/get-model.ts:10