TypeScript API / @laikacms/astro/loader / EntryOptions
Interface: EntryOptions
Properties
id?
ts
optional id?: (context) => string;Derive the Astro entry id from a Laika key. Defaults to stripping the collection prefix.
Parameters
| Parameter | Type |
|---|---|
context | { collection: string; key: string; } |
context.collection | string |
context.key | string |
Returns
string
keyField?
ts
optional keyField?: string;Copy the full Laika key into data under this name. Off by default.
versionField?
ts
optional versionField?: string;Copy the record's version token into data under this name. Off by default.