Discuss all the new features introduced with the new product model in GraphQL.
As you can see here https://shopify.dev/docs/api/admin-graphql/2024-01/objects/Product#field-product-productcategory the field productCategory seems to be deprecated on products, and it says that you should use the 'category' instead. However, there is no 'category' field on Product. I'd like to ask how to handle this.
Thanks!
Solved! Go to the solution
This is an accepted solution.
The Category field is available in 2024-04
https://shopify.dev/docs/api/admin-graphql/2024-04/objects/Product
This is an accepted solution.
The Category field is available in 2024-04
https://shopify.dev/docs/api/admin-graphql/2024-04/objects/Product
There is no field productCategory or category in ProductInput. How can I add/attach productCategory to a Product in productCreate mutation?
I'm using 2024-04 version of graphql.
ProducInput model:
https://shopify.dev/docs/api/admin-graphql/2023-10/input-objects/productinput
It was available until some days ago. Now there is no field exists of productCategory in ProductInput
Has anyone found a good solution for this? I was able to change the category by using the unstable API version.