GitHub

ProductCollectionSortKeys

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

The set of valid sort keys for the ProductCollection query.

enum ProductCollectionSortKeys {
  BestSelling = ProductCollectionSortKeys.BestSelling,
  CollectionDefault = ProductCollectionSortKeys.CollectionDefault,
  Created = ProductCollectionSortKeys.Created,
  Id = ProductCollectionSortKeys.Id,
  Manual = ProductCollectionSortKeys.Manual,
  Price = ProductCollectionSortKeys.Price,
  Relevance = ProductCollectionSortKeys.Relevance,
  Title = ProductCollectionSortKeys.Title,
}

Properties

BestSelling
ProductCollectionSortKeys.BestSelling

Sort by the best-selling value.

CollectionDefault
ProductCollectionSortKeys.CollectionDefault

Sort by the collection-default value.

Created
ProductCollectionSortKeys.Created

Sort by the created value.

Id
ProductCollectionSortKeys.Id

Sort by the id value.

Manual
ProductCollectionSortKeys.Manual

Sort by the manual value.

Price
ProductCollectionSortKeys.Price

Sort by the price value.

Relevance
ProductCollectionSortKeys.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
ProductCollectionSortKeys.Title

Sort by the title value.