GitHub

ProductSortKeys

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

The set of valid sort keys for the Product query.

enum ProductSortKeys {
  BestSelling = ProductSortKeys.BestSelling,
  CreatedAt = ProductSortKeys.CreatedAt,
  Id = ProductSortKeys.Id,
  Price = ProductSortKeys.Price,
  ProductType = ProductSortKeys.ProductType,
  Relevance = ProductSortKeys.Relevance,
  Title = ProductSortKeys.Title,
  UpdatedAt = ProductSortKeys.UpdatedAt,
  Vendor = ProductSortKeys.Vendor,
}

Properties

BestSelling
ProductSortKeys.BestSelling

Sort by the best_selling value.

CreatedAt
ProductSortKeys.CreatedAt

Sort by the created_at value.

Id
ProductSortKeys.Id

Sort by the id value.

Price
ProductSortKeys.Price

Sort by the price value.

ProductType
ProductSortKeys.ProductType

Sort by the product_type value.

Relevance
ProductSortKeys.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.

Title
ProductSortKeys.Title

Sort by the title value.

UpdatedAt
ProductSortKeys.UpdatedAt

Sort by the updated_at value.

Vendor
ProductSortKeys.Vendor

Sort by the vendor value.