I looked into how to perform sorting and pagination with Strapi v4's GraphQL. Documentation was found at the following location.
GraphQL API | Strapi 5 Documentation
The GraphQL API allows querying and mutating content-types with filtering, sorting, and pagination. It uses documentId as the unique identifier and provides singular and plural queries with support for relations, media fields, components, dynamic zones, and localization.
Specifically, pagination and sorting could be performed by writing queries like the following.
query {
blogPosts(pagination: {page: 1, pageSize: 10}, sort: "createdAt:desc") {
meta {
pagination {
total
}
}
data {
id
attributes {
createdAt
}
}
}
}
I hope this serves as a helpful reference.




Comments
…