ModelCategoryInstance <D>
Index
Methods
entries
Returns a StarlightListResponse with the list of entries of this ModelCategory.
Parameters
optionaloptions: ModelCategoryEntryListParams & QueryableFields<D>
An optional object of request parameters. See ModelCategoryEntryListParams for all available options.
field:foo
syntax is also supported, see QueryableFields for more info.
Returns Promise<StarlightListResponse<Entry<D>>>
get
Returns a StarlightItemResponse with a single ModelCategory.
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.