CollectionInstance <C>
Index
Methods
get
Returns a StarlightItemResponse with a single Collection.
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<Collection<CollectionTypeMapper<C>>>>
items
Returns a StarlightListResponse with the list of items of this Collection. The returned list type depends on the collection type: a list of Entries for a collection of type
entry, a list of MediaObjects for a collection o typemedia, and so on.If the given Collection is not typed, this method will return a response of
StarlightListResponse<unknown>.Parameters
optionalparams: ListCollectionItemsParams | WithQueryableFieldsOnModelables<C>
An optional object of request parameters. See ListCollectionItemsParams 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<C>>
An Instance that provide methods to request information and items from a specific Collection.
You can access a CollectionInstance using StarlightClient.collection.
To list all workspace collections, use a CollectionSelector.