PagedQueryDsl
A DSL for constructing paged queries, extending the QueryableDsl to support pagination.
This class allows you to define a query with specific conditions, projections, sorting, and pagination. It is particularly useful when you need to fetch a subset of data from a larger dataset, applying page-based navigation.
Example usage:
val query = pagedQuery {
condition {
// Define your conditions here
}
projection {
// Define your projections here
}
sort {
"fieldName".asc()
}
pagination {
index(2)
size(10)
}
}
Content copied to clipboard