CursorQuery

data class CursorQuery(val filter: FilterExpression, val projection: Projection = Projection.ALL, val sort: List<Sort> = emptyList(), val size: Int = DEFAULT_SIZE, val cursor: String? = null) : ICursorQuery

Constructors

Link copied to clipboard
constructor(filter: FilterExpression, projection: Projection = Projection.ALL, sort: List<Sort> = emptyList(), size: Int = DEFAULT_SIZE, cursor: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val cursor: String?
Link copied to clipboard
open override val filter: FilterExpression
Link copied to clipboard
open override val projection: Projection

The projection settings that control which fields are included in or excluded from the query results.

Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val sort: List<Sort>

The list of sort criteria to apply to the query results. Each sort criterion specifies a field and direction (ascending/descending). Sorts are applied in the order they appear in the list.

Functions

Link copied to clipboard
open override fun withFilter(newFilter: FilterExpression): ICursorQuery
Link copied to clipboard
open override fun withProjection(newProjection: Projection): ICursorQuery

Creates a new query with the specified projection.