ModelCategoryInstance <D>
Index
Methods
entries
Returns a StarlightListResponse with the list of entries of this ModelCategory.
Parameters
optionalparams: ModelCategoryEntryListParams & QueryableFields<D>
An optional object of request parameters. See ModelCategoryEntryListParams for all available parameters.
field:foosyntax is also supported, see QueryableFields for more info.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<Entry<D>>>
get
Returns a StarlightItemResponse with a single ModelCategory.
Parameters
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>>
An Instance that provide methods to request information from a ModelCategory and its Entries.
You can access a ModelCategoryInstance using ModelInstance.category or using the dynamic syntax on a DynamicModelInstance. Usage examples will use the dynamic syntax.
To list all categories from a model, use a ModelCategorySelector.