CursorQuery

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

A query for the page of results after a cursor, in the order of sort, with filtering and projection (Queryable).

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

Where the page starts: the previous page's next cursor, or null for the first page.

Link copied to clipboard
open override val filter: FilterExpression

The filter expression the results match.

Link copied to clipboard
open override val projection: Projection

The fields the results include or exclude.

Link copied to clipboard
val size: Int

The most items on the page, at least 1.

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

The order of the results, which the cursor follows.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun withFilter(newFilter: FilterExpression): CursorQuery
Link copied to clipboard
open override fun withProjection(newProjection: Projection): CursorQuery

Creates a new query with the specified projection.