App reviews, troubleshooting, and recommendations
I can get the Product Type using the GraphQL API from `Product.productType`, but I can't find any documentation on how to get the Product Category. Could someone guide me in the right direction? Thanks!
Solved! Go to the solution
This is an accepted solution.
This should help
https://shopify.dev/api/admin-graphql/2022-10/objects/ProductCategory
Go in via
{
product(id: "") {
productCategory {
productTaxonomyNode {
...
}
}
}
}
Also, this is only available on the 2022-10 (and later) api.
This is an accepted solution.
This should help
https://shopify.dev/api/admin-graphql/2022-10/objects/ProductCategory
Go in via
{
product(id: "") {
productCategory {
productTaxonomyNode {
...
}
}
}
}
Also, this is only available on the 2022-10 (and later) api.
Thank you! If anyone is getting null returned from this, be sure to click the tick icon on Product Category to actually accept it.
Hi,
I would need to retrieve the product category with the Products endpoint using the REST API.
Is this planned to be added anytime soon?
Thank you.
This is available for GraphQL. Can you please help me with the REST API mechanism to get the product category
But it's not available via the Storefront GraphQL API?!
I need to pass the category into useServerAnalytics in my Hydrogen app.
G
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024