type | 'group' | Required | Selects the Group field. |
fields | Field[] | Required | Fields displayed inside the group. |
name | string | — | Property name for a named group. Omit it for a presentational group. See field names. |
interfaceName | string | — | Name of a reusable top-level generated TypeScript interface. Named groups only. |
label | string | Record<string, string> | (({ i18n, t }) => string) | false | Generated from name, if set | Label shown in the admin panel. Use an object keyed by language code for translations, or false to hide the label. |
required | boolean | false | No built-in effect: groups have no default validator. Mark nested fields required or use validate. |
unique | boolean | false | MongoDB only: creates a unique index on the whole stored value. SQL adapters ignore it. |
index | boolean | false | MongoDB only: creates an index on the whole stored value. SQL adapters ignore it. |
localized | boolean | false | Stores one value per configured locale. Ignored without localization or inside a localized parent. |
defaultValue | object or ({ locale, req, user }) => value | — | Value used when the field has no value. See default values. |
validate | Validate | — | Validates the group’s object value on save. Groups have no built-in validator. See validation. |
hooks | { beforeValidate, beforeChange, afterChange, afterRead, beforeDuplicate } | — | Arrays of FieldHook functions for each phase. See field hooks. |
access | { create, read, update } | Allowed | FieldAccess functions for each operation. See field access control. |
hidden | boolean | false | Removes the field from API responses and the admin panel while keeping stored data. |
saveToJWT | boolean | string | false | In an auth-enabled collection, copies the value into the user’s token. A string sets the token key. See token data. |
virtual | boolean | string | false | true skips database storage; a string reads a value through a relationship path. Virtual fields are read-only in the admin panel unless admin.readOnly is false. See virtual fields. |
disableDuplicate | boolean | false | Leaves the value out when a document is duplicated, so the copy uses defaultValue. |
admin | object | — | Admin-panel options. See Admin options. |
custom | Record<string, any> | — | Server-only metadata for your own code and plugins. Use admin.custom for data the browser also needs. |
jsonSchema | Array<({ jsonSchema }) => JSONSchema4> | — | Functions that modify the JSON Schema used by type generation. |