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
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025