CollectionSelector
Index
Methods
get
Returns a StarlightItemResponse with a single Collection.
Parameters
slug: string | number
The collection 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<Collection<string>>>
list
Returns a StarlightListResponse with the list of Collections in this workspace.
Parameters
optionalparams: ListCollectionsParams
An optional object of request parameters. See ListCollectionsParams 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<Collection<string>>>
A Selector that provide methods to list and request information on Collections.
You can use a CollectionSelector by accessing StarlightClient.collections.
To get items from a specific collection, use a CollectionInstance.