What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

productVariantsBulkUpdate missing requiresComponents

productVariantsBulkUpdate missing requiresComponents

AV_SL
Shopify Partner
39 4 11

productVariantsBulkUpdate has replaced the deprecated productVariantUpdate for single variant updates in 2024-10

 

However productVariantsBulkUpdate is missing requiresComponents from the allowed input fields:


productVariantsBulkUpdate - missing requiresComponents

https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/productVariantsBulkCreate#argument-variants 

productVariantUpdate - allows requiresComponents
https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/productVariantUpdate#argument-input 

 

Somewhat understandable as previously there wouldn't have been a strong need to add requiresComponents in a variant bulk update - but now that bulk update is the preferred approach for single variant updates, this value should be available.

 

 

Biscuits Bundles App - Create beautiful mix and match bundles using native Shopify bundles functionality.
Replies 2 (2)

AsafGitai
Shopify Staff
109 16 45

Hi @AV_SL ,

This looks to be an oversight on our part. The two mutations should have logically similar inputs, so adding requiresComponent to the bulkInput shouldn’t be a problem. Thanks for reporting this issue, we will write a fix up for this ASAP and report back to you.

AV_SL
Shopify Partner
39 4 11

Thanks so much for the prompt response @AsafGitai  Appreciate it!

Biscuits Bundles App - Create beautiful mix and match bundles using native Shopify bundles functionality.