Attach Applied Discount Database Table

This example outlines how to attach a database table that’s in the same Amazon RDS instance as the example solution. Suppose you want to attach your MyAppliedDiscount table to apply a discount for one or more order items.

Add the type and input declarations for the MyAppliedDiscount table to the GraphQL schema.

Add metadata entries in the Parameter Store for the MyAppliedDiscount table.

This is a sample table qualifier generated for an external ID based on the id field of the MyOrder table.

This is a sample table qualifier generated for an external ID based on the id field of the MyOrderItem table.

This is a sample table qualifier generated for an external ID based on the id field of the MyProduct table.

This is a sample table qualifier for a virtual external ID defined using the values formula.