Solved

GraphQL Product Query not returning a result

Etra
Shopify Partner
35 0 16

There have been various strange issues with GraphQL queries for products/variants lately. One was fixed today as we experienced it for our app but there is another one we are experiencing that has not been resolved yet. (Results returned for one specific query but none for the other query. Both are for product but I encountered it for productVariant as well). So strange stuff for sure.

Returns a result:

product(id: $id) {
title
featuredImage {
url
}
 

Does not return a result:

 

product(id: $id) {
title
featuredImage {
url
}
variants (first: 25) {
 

---

Of course, the product exists as the first query returns a result and the second one does not.

Accepted Solution (1)

SBD_
Shopify Staff
1829 270 412

This is an accepted solution.

Hey @Etra 

 

Can you please DM me store + product details?

 

Scott

Scott | Developer Advocate @ Shopify 

View solution in original post

Replies 3 (3)

SBD_
Shopify Staff
1829 270 412

This is an accepted solution.

Hey @Etra 

 

Can you please DM me store + product details?

 

Scott

Scott | Developer Advocate @ Shopify 

Etra
Shopify Partner
35 0 16

@SBD_ Done!

Etra
Shopify Partner
35 0 16

Please disregard this, found the cause of the issue. Thank you.