When clicking a previously created Discount in Shopify backend - How do I get the Discount Method (Code vs Automatic) when loading my Shopify Discount React file edit.jsx?
Is It passed down from the Shopify Discount list to my React file and how?
Or do I need to make an additional GraphQL query to defined the the Method (Code vs Automatic) before being able to define if Im dealing with A Code or Automatic discount?
Once I know the type of discount Im dealing with I can query GraphQL with either codeDiscountNode or automaticDiscountNode