FeatureFuel
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.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests