amplify-studio icon indicating copy to clipboard operation
amplify-studio copied to clipboard

UI Builder should allow me to specify fields that come from relationships in my components

Open johnpc opened this issue 2 years ago • 2 comments

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

johnpc avatar Mar 08 '23 16:03 johnpc

I second this issue (see also issue #869)

DougalW avatar Apr 05 '23 01:04 DougalW

I was surprised that Studio does not allow retrieving data from property that comes through a relationship. It is quite a common use case and it greatly limits the benefits of Amplify Studio, such as easily creating Collections.

edumats avatar Sep 05 '23 14:09 edumats