PagedQueryDsl

A DSL for constructing paged queries, extending the QueryableDsl to support pagination.

This class allows you to define a query with specific filters, 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 {
filter {
// Define your filters here
}
projection {
// Define your projections here
}
sort {
"fieldName".asc()
}
pagination {
index(2)
size(10)
}
}

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun build(): IPagedQuery
Link copied to clipboard
fun pagination(block: PaginationDsl.() -> Unit)
fun pagination(pagination: Pagination)