externalEntrySelector <D>
Index
Methods
externalget
Returns a StarlightItemResponse with a single Entry. Supports revision previewing by passing a
preview
parameter.Parameters
externalslug: string
The entry slug.
externaloptionalparams: GetEntryParams
An optional object of request parameters. See GetEntryParams for all available options.
externaloptionaloptions: RequestInit
An optional object of Fetch parameters. Use it to modify the fetch request.See MDN documentation on fetch() for all available options.
Returns Promise<StarlightItemResponse<Entry<D>>>
externallist
Returns a StarlightListResponse with a list of Entries.
Parameters
externaloptionaloptions: ListEntriesParams & QueryableFields<D>
An optional object of request parameters. See ListEntriesParams for all available options.
field:foo
syntax is also supported, see QueryableFields for more info.
Returns Promise<StarlightListResponse<Entry<D>>>
A Selector that provide methods to list and request information on Entries.
You can use an EntrySelector by accessing ModelInstance.entries.