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.
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!
1 Like
Thank Kate, this is exactly what I was looking for