Skip to main content

CollectionSortInput Input

Description

Specifies sorting options for collections, including the field to sort by and the sort order.

Declaration

input CollectionSortInput {
key: String
order: Int
}

Fields

NameTypeDescription
keyStringField name to sort collections by (e.g., title, date).
orderIntSort order: 1 for ascending, -1 for descending.