What's your biggest current challenge? Have your say in Community Polls along the right column.

GraphSQL API, sortKey:BEST_SELLING stop working?

GraphSQL API, sortKey:BEST_SELLING stop working?

PeterGeorge
Shopify Partner
44 2 2

Hi, All.
This one had been working except from today ( edges returns empty ). Simply change the sortKey to "CREATED_AT" would work. 

 

{
  shop{
    products(first:250, query: "available_for_sale:true AND product_type:>0" , sortKey:BEST_SELLING){
      pageInfo{
        hasNextPage
        hasPreviousPage
      }
      edges {
        cursor
        node {
          id
        }
      }
    }
  }
}

 

 

Please reach me if you want a further assistance for future.
Email: skygdi83@gmail.com
Replies 10 (10)

Kyl
Shopify Partner
8 0 2

Hi @PeterGeorge. I don't have a solution for you but just confirming I am experiencing the same issue with the Storefront GraphQL API and seems to have occurred within the past 12 hours.

poojabokdia
Visitor
1 0 0

Hi,
I'm facing the same issue.

harish-fueled
Visitor
1 0 0

Same issue, breaking our app store build, please fix asap

rdfueled
Visitor
3 0 0

We're facing the exact same issue.

We've decided to remove the sort key for now.

davie-robertson
Tourist
7 0 1

removing the sort key is one thing - publishing a new version of the app to work around this (yet to be acknowledged issue) is another.

rdfueled
Visitor
3 0 0

Agreed. We've submitted a new build to the app store earlier today to give us an escape route if Shopify can't resolve the issue quickly.

We also reached out to Shopify Plus support and they weren't aware of the issue but have now escalated. I'll let you know if I hear more.

PeterGeorge
Shopify Partner
44 2 2

Great, I was thinking to reach them today.

I was using a temporary logic for this issue.

So far, it returns data. However, the sorting doesn't sound right compare to previous result.

Please reach me if you want a further assistance for future.
Email: skygdi83@gmail.com
rdfueled
Visitor
3 0 0

They just reached out asking for full request - body and headers.

That being said, it's working again but they didn't mention having actually done anything.

Kyl
Shopify Partner
8 0 2

While this seems to be working again, the results seem to be identical to sorting products from new to old which is:

sortKey:CREATED_AT, reverse:true

 

Can anyone else confirm this behaviour?

PeterGeorge
Shopify Partner
44 2 2

I think so. I have reached their customer service yesterday. Look like the issue still there. 

Please reach me if you want a further assistance for future.
Email: skygdi83@gmail.com