Here's a quick summary of everything we released in Q1 2024.
Hygraph
Docs

You are currently reading the Studio Docs. If you were looking for the Classic Docs check here

Ordering

#Overview

When fetching multiple entries you can use the orderBy argument to define the order of the returned records.

You can order results by all System Fields, and any non-relational custom field you define in your model, either ascending, or descending.

#Order by types

Input TypeDescription
[fieldName]_ASCOrder results by fieldName ascending.
[fieldName]_DESCOrder results by fieldName descending.

#Nested ordering

You can also use the orderBy with any nested relations. For example, let's imagine our post has a authors relation. The same orderBy rules apply.

{
posts {
id
createdAt
relatedPosts(orderBy: createdAt_DESC) {
id
createdAt
}
}
}