aws-amplify / aws-amplify/amplify-studio
UI Builder should allow me to specify fields that come from relationships in my components
- Dominant language
- No language data
- Stars
- 135
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the feature you'd like to request
I'd like to be able to build components that use data from related models.
### Describe the solution you'd like
For example, if I have a `Post` hasOne `Author`, I should be able to design a component representing a Post where the `post.author.name` can be used as a field.
### Describe alternatives you've considered
Right now, my only option is use to separate `Post` and `Author` properties, and write my own logic to make sure I pass in the ones that are related to each other.
Additionally, if I use two separate data models in my Post view component, I cannot use the `Collections` feature to make list views for my Posts.
### Additional context
_No response_
Contributor guide
Research direction
Start by tracing the UI Builder component-field workflow and the Collections feature described in the issue. Define how a Post hasOne Author relationship exposes post.author.name in a component and still supports Post collection list views; confirm the behavior for related-model fields before considering the work complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100