mayteio / ra-aws-amplify

🎩 Create backends for your aws-amplify project at the speed of light with react-admin
MIT License
42 stars 7 forks source link

Example of has one relationship #6

Closed mayteio closed 4 years ago

mayteio commented 4 years ago

In the example app, PostCreate/PostEdit should have a popup that allows creation of a media item and attaching it to the post.

type Post
  @model {
  id: ID!
  title: String!
  content: String
  image: Media @connection
}

type Media
  @model {
  id: ID!
  name: String
  attachment: S3Object!
}

# S3Object minimum type
type S3Object {
  key: String!
  identityId: String
  level: String
}
mayteio commented 4 years ago

Completed. See https://github.com/mayteio/ra-aws-amplify#a-product-with-an-image