Development discussions around Shopify APIs
Products have a status, DRAFT, ACTIVE or ARCHIVED. Very handy.
GraphQL offers a productUpdate mutation that accepts ProductInput as valid fields. Documentation shows status is one of those fields. But the schema tells a different story, and in fact, one cannot update status using this mutation.
1. Why is the schema differing from the documentation?
2. If we cannot change a product's status to ARCHIVED from ACTIVE, what is the point?
Can someone shed some light on how to move a product to status ARCHIVED using GraphQL. Thanks
Never mind. I see a silly call to productChangeStatus will likely take care of that. Wow. I can imagine the Yak shaving champion being dethroned after realizing productUpdate was just not the right thing to be doing when changing status. Probably has to do with a concern about something else, so this is justified. Another beer in the cooler, who cares.
User | RANK |
---|---|
8 | |
7 | |
4 | |
3 | |
3 |
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By