Discussing Shopify Functions development, deployment, and usage in Shopify apps.
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 https://shopify.dev/docs/api/functions/reference/cart-checkout-validation/graphql
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!