Query not working for AutomaticDiscountNodes query

It was working few hours ago, then starting around 30 minutes ago, the query returned empty array, even though it should have returned something.

Here is the Admin API query :
automaticDiscountNodes(first: 5, query: "type:percentage OR type:fixed_amount") , it was supposed to return automatic discount node that are percentage type or fixed_amount type, then suddenly it returned nothing, even though the store has running active automatic discounts.

Please look into this.

Replication steps:

  1. Create automatic discount in your Shopify Admin, and select Product or Order type, and set percentage or fixed amount
  2. Run this graphql query
query {
automaticDiscountNodes(first: 5, query: "type:percentage OR type:fixed_amount") {
  edges {
  node {
    id
  }
}
  1. And see no result returned, but it was supposed to return the discount created in step 1

Seems fixed now, thank you

1 Like