Skip to content

COLLECTION_SYSTEM_FIELDS

const COLLECTION_SYSTEM_FIELDS: object

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

Field keys that defineCollection injects onto every collection’s fields map and that therefore cannot be used as user-defined field names.

Unlike CONVEX_SYSTEM_FIELDS — native Convex system columns present on every document regardless of any field declaration — these are ordinary fields entries defineCollection adds itself, and so ARE subject to Convex schema validation. Conflating the two would put updatedAt in the same union as _id/_creationTime, which is wrong on both counts.

readonly updatedAt: object

Auto-maintained last-write timestamp, stamped by create/update on every write.

readonly slug: "updatedAt" = "updatedAt"