Magidoc

productVariantSetDefault
Mutation

Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook.

Arguments

#

productId

ID !
Non-null

Id of a product that will have the default variant set.

variantId

ID !
Non-null

Id of a variant that will be set as default.

Response

#

Returns ProductVariantSetDefault .

Example

#