Saltar al contenido principal

TemplateConnectionSort

A single sort criterion. Pass an ordered list to the sort argument of Group.templateConnection for multi-column sorting.

Fields​

FieldTypeRequiredDescription
fieldTemplateConnectionSortField!YesField to sort by
directionOrderDirection!YesASC 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
}
}
}
}

Export This Article

Save a copy of this page as PDF or plain text.