BackwardConnectionArguments

Arguments for backward pagination through a connection.

See also

Inheritors

Properties

Link copied to clipboard
abstract val before: String?

Cursor to start fetching items before (exclusive).

Link copied to clipboard
abstract val last: Int?

Maximum number of items to return from the end.

Functions

Link copied to clipboard

Returns true if backward pagination needs the total count to resolve the starting offset.

Link copied to clipboard
open override fun toOffsetLimit(defaultPageSize: Int): OffsetLimit

Converts backward pagination arguments to offset/limit.

open override fun toOffsetLimit(totalCount: Int, defaultPageSize: Int): OffsetLimit

Converts backward pagination arguments to offset/limit when the total count is known.

Link copied to clipboard
open override fun validate()

Validates backward pagination arguments.