Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

GraphQL Product Query not returning a result

Solved

GraphQL Product Query not returning a result

Etra
Shopify Partner
37 0 20

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
1831 273 423

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
1831 273 423

This is an accepted solution.

Hey @Etra 

 

Can you please DM me store + product details?

 

Scott

Scott | Developer Advocate @ Shopify 

Etra
Shopify Partner
37 0 20

@SBD_ Done!

Etra
Shopify Partner
37 0 20

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