Do you know a way to build parent-child-relations in Directus, ideally with some kind of tree display? Like, for example, to define category trees or page trees, with parent pages and child pages. It is a very common functionality in most of the famous CMS, and I wonder how to build that in Directus.
I've found the "Tree View" field, but I don't really understand how it works, there is no documentation on it and I get error messages like
{
"errors": [
{
"message": "alter table `Unterkategorien` add constraint `unterkategorien_name_foreign` foreign key (`name`) references `Kategorien` (`id`) on delete SET NULL - ER_CANNOT_ADD_FOREIGN: Cannot add foreign key constraint",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
]
}
Any hint is appreciated! Thanks!
Directus: 9.13.1 (self hosted on Ubuntu/Coolify) DB: MySQL 5.7