EntrySelector <D>
Index
Methods
get
Returns a StarlightItemResponse with a single Entry. Supports revision previewing by passing a
previewparameter.Parameters
slug: string
The entry slug.
optionalparams: GetEntryParams
An optional object of request parameters. See GetEntryParams for all available options.
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<Entry<D>>>
list
Returns a StarlightListResponse with a list of Entries.
Parameters
optionalparams: ListEntriesParams & QueryableFields<D>
An optional object of request parameters. See ListEntriesParams 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<Entry<D>>>
A Selector that provide methods to list and request information on Entries.
You can use an EntrySelector by accessing ModelInstance.entries.