Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
HI everyone,
I use the GraphQL Admin API to send products and receive orders.
I create thousands of products at time via bulk operation "createProducts".
My current problem is the field "published" has been remove from ProductInput
and now I need to call the mutation "publishablePublish" for each product.
This is ridiculous, I have a cloud application with many sellers integrated with Shopify and every seller now need to call "publishablePublish" for every single product, the result will be billions of calls?
Please, does anyone have the same problem as me?
Help please
Did you find a solution? I am integrating a legacy store and basically need to delete and create all products every day to reflect inventory...
1. I need to delete all products by product ID one by one
2. I bulk upload all products with bulkOperationRunMutation productCreate (which in it of itself is overly complex with its staging and multiple calls and polling to check the status etc.)
3. ImageSrc is now deprecated, so i need to run productCreateMedia for every single product to upload an image
4. And now... I need to run publishablePublish on all products???
I thought the idea of the GraphQL admin API was to limit the number of calls necessary to acheive certain tasks - doesn't seem to acheive that goal...
@lvorraro It's now available via bulk operations:
https://shopify.dev/docs/api/usage/bulk-operations/imports#limitations
@batsandi The thoughts and feelings that you're expressing are similar to the ones that we've had while trying to get things done with the API. We've had to build several new systems in response to changes with the API. That can take the wind out of our sails.
Here are a couple of reassuring ideas that we've had: