SingleQuery

constructor(filter: FilterExpression = MatchAllFilter, projection: Projection = Projection.ALL, sort: List<Sort> = emptyList())

Parameters

sort

The order of the results; the query keeps a copy.

val query = SingleQuery(
filter = EqualFilter(QueryField("id"), value),
projection = Projection(include = listOf(QueryField("name"), QueryField("email"))),
sort = listOf(Sort(QueryField("createdDate"), Direction.DESC))
)