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!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from 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!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Thank Kate, this is exactly what I was looking for
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023