I am very new to the amplify/react world and stuck on below.
How do I attach an existing item in the create form?
I have two data models with a 1:1 relationship. In the autogenerated create form I do not see an option to attached an existing pickupaddresses. In Amplify studio when I navigate to Content management, somehow amplify adds that functionality ("Add Item") in the content creation form. I want to replicate what content creation form looks like
type ShippingLabel @model @auth(rules: [{allow: owner}]) {
id: ID!
ordernumber: String!
addressline1: String
addressline2: String
city: String
postalcode: String
country: String
status: deliverystatus
customerName: String
customerPhone: AWSPhone
customerEmail: AWSEmail
customerNotes: String
PickupAddresses: PickupAddresses @hasOne
}
type PickupAddresses @model @auth(rules: [{allow: owner}]) {
id: ID!
addressline1: String
addressline2: String
city: String
postalcode: String
country: String
}
Auto-generated form (No option to associate pickup address) Auto generated form
Content Management form in amplify studio (has an option to search and add a pick up address)
Create content form - desired behavior
Couldn't find a document or post in updating the autogenerated forms