Added variant_strategy
for productOptionsCreate
API
Effective October 01, 2024
In the version 2024-10 release of the Admin GraphQL API, the productOptionsCreate
mutation will include a variantStrategy
parameter, enhancing control over variant management when adding new product options. This new parameter allows for two strategies:
LEAVE_AS_IS
: Maintains existing variants, updating them to include new option values without creating new variants as necessary.CREATE
: Generates new variants for all possible combinations of option values. This enhancement allows for more precise control over product variant configuration and inventory management.
For more detailed information and examples, visit our productOptionsCreate documentation on Shopify.dev.