Anchor to section titled 'undefined'

ProductOptionUpdateVariantStrategy
enum

The set of variant strategies available for use in the productOptionUpdate mutation.


value-leaveasis
LEAVE_AS_IS

Variants are not created nor deleted in response to option values to add or delete. In cases where deleting a variant would be necessary to complete the operation, an error will be returned.

Variants are created and deleted according to the option values to add and to delete.

If an option value is added, a new variant will be added for each existing option combination available on the product. For example, if the existing options are Size and Color, with values S/XL and Red/Blue, adding a new option value Green for the option Color will create variants with the option value combinations S/Green and XL/Green.

If an option value is deleted, all variants referencing that option value will be deleted.


Was this section helpful?


Was this section helpful?
Map
ProductOptionUpdateVariantStrategy

Mutations from