Skip to Content

ArticleSortKey

The set of valid sort keys for article listings. Use this enum to specify how article results should be ordered in queries.

Enum Definition

enum ArticleSortKey { TITLE PUBLISHED_AT CREATED_AT UPDATED_AT AUTHOR }

Values

ValueDescription
TITLESort articles by title
PUBLISHED_ATSort articles by publication date
CREATED_ATSort articles by creation date
UPDATED_ATSort articles by last update date
AUTHORSort articles by author

Example

query { articles(first: 10, sortKey: PUBLISHED_AT) { edges { node { id title author publishedAt } } } }

No related types specified.