GraphQL availableShippingRates & shipping discounts, how to handle?

New Member
2 0 0

Here is a scenario, I have a custom storefront and a discount code that gives 100% discount on shipping rates when the shipping costs less than $10. 

This works fine on Shopify native checkout see screenshot below.

Screen Shot 2020-09-29 at 4.11.44 pm.png 

Now, when using GraphQL to get the same checkout object to render my custom checkout experience I can't find a way to figure out how to apply the discount only to a certain shippingRates when rendering the screen, see GraphQL responses for checkout.discountApplications and discount.availableShippingRates



Any help would be awesome!