Skip to content

TypeScript API / @contentia/astro/loader / EntryOptions

Interface: EntryOptions ​

Properties ​

id? ​

ts
id?: (context) => string;

Derive the Astro entry id from a Contentia key. Defaults to stripping the collection prefix.

Parameters ​

ParameterType
context{ collection: string; key: string; }
context.collectionstring
context.keystring

Returns ​

string


keyField? ​

ts
keyField?: string;

Copy the full Contentia key into data under this name. Off by default.


versionField? ​

ts
versionField?: string;

Copy the record's version token into data under this name. Off by default.