ProductVariantSortKeys

The set of valid sort keys for the variants query.

Show definition
# The set of valid sort keys for the variants query.
enum ProductVariantSortKeys {
  TITLE
  NAME
  SKU
  INVENTORY_QUANTITY
  INVENTORY_MANAGEMENT
  INVENTORY_POLICY
  FULL_TITLE
  POPULAR
  POSITION
  ID

  # During a search (i.e. when the `query` parameter has been specified on the connection) this sorts the
  # results by relevance to the search term(s). When no search query is specified, this sort key is not
  # deterministic and should not be used.
  RELEVANCE
}

Values

TITLE

ID

INVENTORY_MANAGEMENT

INVENTORY_POLICY

INVENTORY_QUANTITY

NAME

POPULAR

POSITION

RELEVANCE

During a search (i.e. when the query parameter has been specified on the connection) this sorts the results by relevance to the search term(s). When no search query is specified, this sort key is not deterministic and should not be used.

SKU

FULL_TITLE