GitHub

ArticleSortKeys

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

The set of valid sort keys for the Article query.

enum ArticleSortKeys {
  Author = ArticleSortKeys.Author,
  BlogTitle = ArticleSortKeys.BlogTitle,
  Id = ArticleSortKeys.Id,
  PublishedAt = ArticleSortKeys.PublishedAt,
  Relevance = ArticleSortKeys.Relevance,
  Title = ArticleSortKeys.Title,
  UpdatedAt = ArticleSortKeys.UpdatedAt,
}

Properties

Author
ArticleSortKeys.Author

Sort by the author value.

BlogTitle
ArticleSortKeys.BlogTitle

Sort by the blog_title value.

Id
ArticleSortKeys.Id

Sort by the id value.

PublishedAt
ArticleSortKeys.PublishedAt

Sort by the published_at value.

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

Sort by the title value.

UpdatedAt
ArticleSortKeys.UpdatedAt

Sort by the updated_at value.