ListQueryDsl

A DSL for constructing list queries.

This class allows you to define a list query with conditions, projections, sorting, and a limit. The build method compiles the defined parameters into an IListQuery object.

Example usage:

val query = listQuery {
condition {
"field1" eq "value1"
}
projection {
include("field1", "field2")
}
sort {
"field1".asc()
"field2".desc()
}
limit(10)
}

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun build(): IListQuery
Link copied to clipboard
fun condition(block: ConditionDsl.() -> Unit)
fun condition(condition: Condition)
Link copied to clipboard
fun limit(limit: Int)
Link copied to clipboard
fun projection(block: ProjectionDsl.() -> Unit)
fun projection(projection: Projection)
Link copied to clipboard
fun sort(block: SortDsl.() -> Unit)
fun sort(sort: List<Sort>)