Hi everybody,
I’ve never used GraphQL (only REST) and I just found out that Product Category is not available in the REST API and it’s something that I need to be able to fetch based on a product id.
Can someone help me with what does the query look like to fetch a product category based on a product id and how to set a product category on a product given its id?
Overall I find it disconcerting that with an API offering like Shopify something is simply only available in GraphQL and not REST. I mean, when someone starts and makes a choice of what to use, this information won’t be available. Furthermore, as far as I understand proper practices, the goal of an API is to expose functionalities of a system. GraphQL simply allows you to have more granularity so you dont have to fetch the whole resource. But never I believe has the intention been that some stuff simply is not exposed in REST vs GraphQL. Seems like a poor practice to implement especially for a large company like Shopify.