Skip to main content

PageInfo

data class PageInfo(var hasPreviousPage: Boolean, var hasNextPage: Boolean, var startCursor: String? = null, var endCursor: String? = null)

Information about pagination in a connection.

Constructors

PageInfoconstructor(hasPreviousPage: Boolean, hasNextPage: Boolean, startCursor: String? = null, endCursor: String? = null)

Properties

NameSummary
endCursorvar endCursor: String?
When paginating forwards, the cursor to continue.
hasNextPagevar hasNextPage: Boolean
Are there more items when paginating forwards?
hasPreviousPagevar hasPreviousPage: Boolean
When paginating backwards, are there more items?
startCursorvar startCursor: String?
When paginating backwards, the cursor to continue.