Installation

If you copy an existing project and want to start with a fresh db execute this to init the DB

npx directus init //FYI: this also resets the .env file

Config

Get 400 Request and don’t know what is wrong?


...
//Activate verbose logging
LOG_LEVEL=trace
...

Configuration

Creating new Collections

“What does the status field do?” → If you choose to include this field, the collection's archive settings will automatically be configured for you (allows you to enable "soft-delete" within the collection. Archived items are hidden in the App by default, but are still returned normally via the API unless they are filtered out) → Use this for Draft/Publish functionality

Untitled

How to make a 1:1 (one-to-one) relation?” (source)

In Directus there is no direct one-to-one relation, instead:

  1. Create a M2O field
  2. Click on "Continue in Advanced Field Creation Mode" instead of "Save"
  3. Check "Value has to be unique" (determines whether it is 1:n or 1:1)

Presets