ModelCategorySelector
Index
Methods
get
Returns a StarlightItemResponse with a single ModelCategory.
Parameters
slug: string
The category slug.
optionalparams: BaseRequestParameters
An optional object of request parameters.
optionaloptions: RequestInit
An optional object of fetch options. See https://developer.mozilla.org/en-US/docs/Web/API/RequestInit for more info.
Returns Promise<StarlightItemResponse<ModelCategory>>
list
Returns a StarlightListResponse with a list of ModelCategories.
Parameters
optionalparams: ListModelCategoriesOptions
An optional object of request parameters. See ListModelCategoriesOptions for all available parameters.
optionaloptions: RequestInit
An optional object of fetch options. See https://developer.mozilla.org/en-US/docs/Web/API/RequestInit for more info.
Returns Promise<StarlightListResponse<ModelCategory>>
A Selector that provide methods to list and request information on ModelCategories.
You can use a ModelCategorySelector by accessing ModelInstance.categories.