Is it possible to query all the orders that include specific automatic discount?
As in the orders query docs (orders - GraphQL Admin (shopify.dev)) you can only query by discount_code which not relevant to automatic discounts.
And even if you query all orders, it’s impossible to know which automatic discount affect which order as there is no discount id attached to the order, and you can only see how much discount applied and the target (shipping/line item)
There is any other way to accomplish this query? did I miss something in the docs?