Discuss all the new features introduced with the new product model in GraphQL.
When the variant limit is increased to 2,000, can I delete more than 1,000 variants at once? From the productVariantsBulkDelete mutation, I can't see if the operation is OK.
I want to remove the existing variants and only keep the 1st one. How can I do so?
HI @jam_chan
productVariantsBulk* are currently meant to support up to 250 variants.
> I want to remove the existing variants and only keep the 1st one.
It sounds like you want to delete the options as well, you can call productOptionsDelete with strategy Position.
Alternatively you can call ProductSet with the options and values you would like to have for the product
If you delete all the options via productOptionsDelete or call ProductSet with [] on options & variants - it will return the product to have the default variant.
There is not product without a variant
Thanks @AsafGitai
Can I delete all variants except the default one and keep the 2 existing options? I try to run the productOptionUpdate mutation without success.