GraphQL query to find a specific Discount for a PriceRule

New Member
3 0 0

Hey all,

Without having to iterate through all the PriceRules on my Shopify store, as I know we can access the Discount ids for each priceRule, I would like to write a GraphQL query that could match a specific Discount with a specific PriceRule in the one query (or two at most). You can't query a PriceRule for a Discount directly (with the query param).

I'm knew to GraphQL but I understand the basics. Can someone please suggest to me a solution?