1
"Expand" Option for Relationships Between Collections
Source: directus/directus#23514 · opened by @pasqualepalmaccio
Summary I propose adding an "expand" option for relationships between collections in Directus. If enabled, this option would automatically extend the raw value of a relationship to include all fields of the related collections, providing greater flexibility in managing related data. Basic Example Let's assume we have two collections, "Articles" and "Categories," with a relationship between them. With the "expand" option enabled, when accessing an article, it would be possible to retrieve not only the ID of the associated category but also all the fields of the "Categories" collection, such as the name and description. Motivation Implementing this feature would greatly improve the usability of Directus, especially for developers managing complex data who need to access details of related collections more immediately. Other tools, like PocketBase, already offer this feature, and adding it to Directus would make the platform eve…
No pledges yet. Be the first to back this.
Comments
Similar requests
Restrict "Show Hidden Collections" to Admin Users
25 votes · 0 comments
Grant permissions on all user collections
1 vote · 0 comments
Access Policy for Data Model / Content Collection Groups (Folders)
2 votes · 0 comments
Get all related collections/items for m2o,m2m without reverse fields
2 votes · 0 comments
Collapse Database-Only Collections in Data Model page
2 votes · 0 comments
No comments yet.