From 912e8077dc97dc6b6b31a389683fb157808daed5 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Tue, 3 Mar 2026 16:12:45 +0100 Subject: [PATCH] Update documentation to include 'archived' field in collections guide --- content/guides/01.data-model/1.collections.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/guides/01.data-model/1.collections.md b/content/guides/01.data-model/1.collections.md index 893e4a9b..98a1e4f9 100644 --- a/content/guides/01.data-model/1.collections.md +++ b/content/guides/01.data-model/1.collections.md @@ -35,7 +35,7 @@ The primary key field contains a unique value for each item in the collection. T The primary key type defines the strategy for creating unique primary keys. Once selected, this cannot be modified. -Additionally, Directus can create some common fields, including a status field, sort, as well as fields related to who and when items are created or edited. Directus supports the following types of IDs: +Additionally, Directus can create some common fields, including an archived field, sort, as well as fields related to who and when items are created or edited. Directus supports the following types of IDs: - **Auto-Incremented Integer**: IDs increment from `1` to `2^31-1` (`2,147,483,647`). - **Auto-Incremented Big Integer**: IDs increment from `1` to `2^63-1` (`9,223,372,036,854,775,807`). This is only available if using MySQL and PostgreSQL as your database. @@ -124,6 +124,8 @@ When you duplicate an item, any related items are not copied. You must create ne Archived items still exist in your collections, but are filtered within the Data Studio. If not selected as an optional field when creating a collection, you will need to create a new field. +When creating a collection via the wizard, the optional `archived` field is a **boolean** type. The archive value is `true` and the unarchive value is `false`. If you create an archive field manually, you can use any string or boolean field. + To configure an archive field, set the following four input fields as desired. - **Archive Field**: selects the archive field.