I am looking to query the channel that a buyer is coming from in order to change the discount based on which storefront the buyer is shopping from. Anyone know if this is possible? I haven’t seen what graphql resource works for this in the shopify functions api here Cart and Checkout Validation Function API
I have tried to add the channel and other shop data in my schema types, but getting an error in the console. see attached.
Any help would be appreciated. Thanks!
