GraphQL query to shop.allProductCategories.productTaxonomyNode returns an empty array on a specific merchant store (API version 2022-10), despite products being mapped to categories/product types. The same query returns expected category data on another store.
The provided query is a simple fetch of productTaxonomyNode{name}. Screenshots show an empty response for the affected store and valid data for the other store; no code errors were indicated.
Support requested diagnostics and received X-Request-ID 109158e5-649e-4811-91a9-5f344e8a4b67 with timestamp Thu, 17 Nov 2022 22:38:52 GMT.
Log review suggested the API should return data if product types are set via Shopify’s standard method. Support could not reproduce the issue on a test store and suspects a store-specific problem.
Action recommended: have the merchant contact Shopify support through the official channel and reference the forum post; the developer can be added to the case for follow-up while keeping sensitive details private.
Open questions: the developer asked if this endpoint is the only way to retrieve currently set TaxonomyNodes. No alternative method or resolution was provided in-thread; the issue remains unresolved pending merchant support escalation.
When using GraphQL to query allProductCategories.productTaxonomyNodes it returns an empty array. This is using 2022-10. The shop already has products mapped to product categories. Here is the query I am running along with the response.
{
shop{
allProductCategories{
productTaxonomyNode{
name
}
}
}
}
Hey @jas9 , do you have an X-Request-ID from a response header for the example where the array doesn’t show any information? I can take a look at the logs on our end to see if I can narrow down what may be happening. Could you also share a timeframe for that example? Hope to hear from you soon.
Hey again @jas9 - thanks for sharing that information with me. I was able to do a bit of digging and from what I can see based on our logs, your API call should have retrieved the data as expected - as long as the merchant’s shop has product types set up using this method. I wasn’t able to replicate the error on my end, products with the correct taxonomy and category showed up through my live test store as expected. There could potentially be something related to this specific store that is preventing the data from being sent as expected.
Could you ask your merchant to reach out to us through our support channel here?
Our merchant-facing technical teams would be better able to assist them this way so that we can keep sensitive information out of the forums. They are welcome to add you to the support interaction with our team on request as well. I would just ask them to reference my post here in the forums so that the issue can potentially get looked at a bit quicker.
Hope this helps and thanks again for bringing this up - definitely an odd issue. We’ll try to get this fixed/looked at.
It works on my test store as well. Just not working for this merchant. I checked the products and they are mapped to types and the taxonomy correctly. We are looking to get this setup asap, is this endpoint the only way to obtain currently set TaxonomyNode’s?