GitHub

ProductVariantSortKeys

import { ProductVariantSortKeys } from '@daffodil/driver/shopify'

The set of valid sort keys for the ProductVariant query.

enum ProductVariantSortKeys {
  Id = ProductVariantSortKeys.Id,
  Position = ProductVariantSortKeys.Position,
  Relevance = ProductVariantSortKeys.Relevance,
  Sku = ProductVariantSortKeys.Sku,
  Title = ProductVariantSortKeys.Title,
}

Properties

Id
ProductVariantSortKeys.Id

Sort by the id value.

Position
ProductVariantSortKeys.Position

Sort by the position value.

Relevance
ProductVariantSortKeys.Relevance

Sort by relevance to the search terms when the query parameter is specified on the connection. Don't use this sort key when no search query is specified.

Sku
ProductVariantSortKeys.Sku

Sort by the sku value.

Title
ProductVariantSortKeys.Title

Sort by the title value.