Skip to content

CollectionSystemField

CollectionSystemField = typeof COLLECTION_SYSTEM_FIELDS[keyof typeof COLLECTION_SYSTEM_FIELDS]["slug"]

Defined in: packages/core/src/collections/constants.ts:62

Union of the field slugs defineCollection injects into fields. Resolves to "updatedAt".

Deliberately NOT widened with the versioning system fields: this type also keys CollectionConfig.fields, and vex_status/vex_publishedAt/ vex_publishedId are table columns emitted by versionFieldsToVexSchema, never fields entries. The reserved-name guard in defineCollection unions VersionSystemField (versions/constants.ts) in at its own call site instead.

COLLECTION_SYSTEM_FIELDS for the full map of reserved keys