externalCollectionInstance <C>
Index
Methods
externalget
Returns a StarlightItemResponse with a single Collection.
Returns Promise<StarlightItemResponse<Collection<CollectionTypeMapper<C>>>>
externalitems
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
externaloptionaloptions: ListCollectionItemsParams | WithQueryableFieldsOnModelables<C>
An optional object of request parameters. See ListCollectionItemsParams for all available options.
field:foo
syntax is also supported, see QueryableFields 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.