App reviews, troubleshooting, and recommendations
I've successfully retrieved the Product Type using the Product.productType field in the GraphQL API, but I'm unable to find information on how to obtain the Product Category.
Solved! Go to the solution
This is an accepted solution.
Hi @panpert
This is Kate from PageFly - Landing page builder
To retrieve the product category in a GraphQL API, you may need to include the "category" field in your query. The exact implementation may vary depending on the specific API you're using, but it should look something like this:
query {
product(id: "product-id") {
productType
category {
title
id
}
}
}
Hope my answer will help you!
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Unlock the secrets to a record-breaking BFCM with PageFly and Canva
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from the Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
Hi @panpert
This is Kate from PageFly - Landing page builder
To retrieve the product category in a GraphQL API, you may need to include the "category" field in your query. The exact implementation may vary depending on the specific API you're using, but it should look something like this:
query {
product(id: "product-id") {
productType
category {
title
id
}
}
}
Hope my answer will help you!
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Unlock the secrets to a record-breaking BFCM with PageFly and Canva
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from the Free plan. Live Chat Support is available 24/7.
Thank Kate, this is exactly what I was looking for
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025