Magidoc

VariantSortingInput
Input Object

Fields

#

attributeId

Sort variant by the selected parent product's attribute's values. Note: this doesn't take translations into account yet.

direction

Non-null

Specifies the direction in which to sort products.

field

Sort variants by the selected field.

Usages

#

References

#

  • Argument sortBy of field productVariants from type Query
  • Argument sortBy of field variants from type Collection