TemplateConnectionSort
A single sort criterion. Pass an ordered list to the sort argument of Group.templateConnection for multi-column sorting.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
field | TemplateConnectionSortField! | Yes | Field to sort by |
direction | OrderDirection! | Yes | ASC or DESC |
Example
query SortedTemplates($groupId: ID!) {
group(id: $groupId) {
templateConnection(
first: 20
sort: [
{ field: STATUS, direction: ASC }
{ field: MODIFIED, direction: DESC }
]
includeTotalCount: true
) {
totalCount
templates {
id
title
status
}
}
}
}