GitHub

CollectionSortKeys

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

The set of valid sort keys for the Collection query.

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

Properties

Id
CollectionSortKeys.Id

Sort by the id value.

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

Sort by the title value.

UpdatedAt
CollectionSortKeys.UpdatedAt

Sort by the updated_at value.