GitHub

ShopifyCollectionSortKeys

enum

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

The set of valid sort keys for the Collection query.

enum ShopifyCollectionSortKeys {
  Id = ShopifyCollectionSortKeys.Id,
  Relevance = ShopifyCollectionSortKeys.Relevance,
  Title = ShopifyCollectionSortKeys.Title,
  UpdatedAt = ShopifyCollectionSortKeys.UpdatedAt,
}

Properties

Id
ShopifyCollectionSortKeys.Id

Sort by the id value.

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

Sort by the title value.

UpdatedAt
ShopifyCollectionSortKeys.UpdatedAt

Sort by the updated_at value.