productVariantSetDefault Mutation
Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook.
productVariantSetDefault(
productId: ID!
variantId: ID!
): ProductVariantSetDefault
Arguments
productVariantSetDefault.productId
● ID!
non-null scalar miscellaneous
Id of a product that will have the default variant set.
productVariantSetDefault.variantId
● ID!
non-null scalar miscellaneous
Id of a variant that will be set as default.
Type
ProductVariantSetDefault
object products
Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook.