Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

productCategory deprecated, but no category field on Product

Solved

productCategory deprecated, but no category field on Product

Sascha5
Shopify Partner
10 2 8

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.

Sascha5_0-1711620368980.png

 

Thanks!

Accepted Solution (1)

AsafGitai
Shopify Staff
109 16 45

This is an accepted solution.

Replies 5 (5)

AsafGitai
Shopify Staff
109 16 45

This is an accepted solution.

The Category field is available in 2024-04
https://shopify.dev/docs/api/admin-graphql/2024-04/objects/Product

m_mudassir
Shopify Partner
4 0 3

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

m_mudassir
Shopify Partner
4 0 3

It was available until some days ago. Now there is no field exists of productCategory in ProductInput

JoelofArc
Visitor
2 0 0

Has anyone found a good solution for this? I was able to change the category by using the unstable API version.