As already mentioned across several topics, the ProductSet mutation does not provide measurement (inventoryItem) information, which leads to the frustrating situation of piecing many things together (…).
Now, what is the best approach to handle this?
- First, we create (or update!) a Product using ProductSet. We add everything we know about variants in the ProductSet.
How do we update the inventory item?
- Using the InventoryItem mutation requires tracking all IDs of all variants. How is this even feasible? This task requires far too many query calls.
- Using
productVariantsBulkCreate
requires deleting all variants first, meaning we’d need to query them all beforehand. That’s too many calls. - Using
productVariantsBulkUpdate
faces the same issue.
Shopify, please provide a clear and straightforward guide on how to achieve this. The perfectly functional REST API is being deprecated, yet the suggested migration path using ProductSet is not viable.
We are syncing thousands of products, each with many variations. How should we handle this? What are the suggested steps? The guide should not contain the process of creating, also updating must be supported.