CollectionSelector
Index
Methods
get
Returns a StarlightItemResponse with a single Collection.
Parameters
slug: string | number
The collection slug.
Returns Promise<StarlightItemResponse<Collection<string>>>
list
Returns a StarlightListResponse with the list of Collections in this workspace.
Parameters
optionaloptions: ListCollectionsParams
An optional object of request parameters. See ListCollectionsParams for all available options.
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.