Ordering records
How to fetch ordered records
If a type supports sorting, it is possible to use the
orderBy
argument to order a query result set:my_query(orderBy: value) {
...
}
It is also possible to combine
filter
and orderBy
arguments:my_query(filter: {...}, orderBy: value) {
...
}
Order by | Value |
createdAt | createdAt_ASC |
createdAt | createdAt_DESC |
matchesCount | matchesCount_ASC |
matchesCount | matchesCount_DESC |
updatedAt | updatedAt_ASC |
updatedAt | updatedAt_DESC |
Order by | Value |
createdAt | createdAt_ASC |
createdAt | createdAt_DESC |
Last modified 3yr ago