productVariantReorder Mutation
Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook.
productVariantReorder(moves: [ReorderInput!]!, productId: ID!): ProductVariantReorder
Returns
Show return type
type ProductVariantReorder {
product: Product
productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [ProductError!]!
}Arguments
moves
moves · [ReorderInput!]!
The list of variant reordering operations.
productId
productId · ID!
Id of product that variants order will be altered.
Schema: Saleor 3.23.43. Download SDL.