EntrySelector <D>
Index
Methods
get
Returns a StarlightItemResponse with a single Entry. Supports revision previewing by passing a
preview
parameter.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 parameters. Use it to modify the fetch request.See MDN documentation on fetch() for all available options.
Returns Promise<StarlightItemResponse<Entry<D>>>
list
Returns a StarlightListResponse with a list of Entries.
Parameters
optionaloptions: 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.