Table of contents
Field Transforms
Directus contains special flags that can be used to alter the I/O of a field's value when it's being used through the API. This can be used to cast boolean values to JSON
true/false, convert DB-date formats to ISO8601, and more.
These flags are stored in the special field of directus_fields.
Hash
hash
Hash the value using argon2 on create/update.
UUID
uuid
Generate a new UUID on creation.
Boolean
boolean
Cast the value to/from a JSON boolean (true / false).
JSON
json
Cast the value to/from a JSON object.
CSV
csv
Cast the value from a JSON array of strings to a CSV in the database (and vice versa).
Conceal
conceal
Return the value concealed in the API. This will replace the true stored value with ********.
User Created
user-created
Save the currently authenticated user on creation.
User Updated
user-updated
Save the currently authenticated user on update.
Role Created
role-created
Save the currently authenticated user's role on create.
Role Updated
role-updated
Save the currently authenticated user's role on update.
Date Created
date-created
Save the current date on create.
Date Updated
date-updated
Save the current date on update.
- Home
- Debugging
- Filters
- Field Transforms
- API
- App
- App Components
- transition-bounce
- transition-dialog
- transition-expand
- v-avatar
- v-badge
- v-breadcrumb
- v-button
- v-card-actions
- v-card-subtitle
- v-card-text
- v-card-title
- v-card
- v-checkbox
- v-chip
- v-detail
- v-dialog
- v-divider
- v-drawer
- v-error
- v-fancy-select
- v-field-select
- v-field-template
- v-form
- v-hover
- v-icon
- v-info
- v-input
- v-item-group
- v-item
- v-list-group
- v-list-item-content
- v-list-item-hint
- v-list-item-icon
- v-list-item
- v-list
- v-menu
- v-notice
- v-overlay
- v-pagination
- v-progress-circular
- v-progress-linear
- v-radio
- v-select
- v-sheet
- v-skeleton-loader
- v-slider
- v-switch
- v-tab-item
- v-tab
- v-table
- v-tabs-items
- v-tabs
- v-text-overflow
- v-textarea
- v-upload
These are reference documents on how Directus works on the inside. Unless you're contributing to the platform, you shouldn't need this.
Please see https://docs.directus.io for the usage guide.