2024-10 productSet productVariantSetInput missing inventoryItem

I’m currently upgrading our backend to the 2024-10 API version, and we’re using bulk mutations for creating/updating products. I’m transitioning to the productSet mutation, but I noticed that ProductVariantSetInput doesn’t include the inventoryItem directly. While it allows setting inventoryPolicy and inventoryQuantities, and even returns the inventoryItem ID in the response, it doesn’t allow setting inventoryItem → tracked → true, which is crucial for proper inventory tracking. This seems to negate the other inventory-related settings when the productSet is creating a product with a variant due to no tracking = true.

Additionally, the new productCreate mutation no longer includes variants, which complicates things. We typically only create one variant per product, so do I now need to follow a process like productCreate (bulk) → productVariantsBulkCreate → publish, since productSet doesn’t handle inventoryItem? This feels like a step backward compared to how productCreate used to work in previous API versions.

productCreate - GraphQL Admin (shopify.dev)

8 Likes

hi @RAMMounts

Thanks for point this out to us. We will look into it and get back to you