class PageInfo(val nodeQueryOptions: NodeQueryOptions, val allNodes: List<Node>, val nodes: List<Node>, val objectMapper: ObjectMapper)

Page info used in GraphQL connection to provide general pagination information

Parameters

nodeQueryOptions

options used for querying the connection

allNodes

the list of all nodes returned from the query, before first or last was applied to limit results

nodes

the list of nodes which is returned

objectMapper

used for cursor generation

Constructors

Link copied to clipboard
constructor(nodeQueryOptions: NodeQueryOptions, allNodes: List<Node>, nodes: List<Node>, objectMapper: ObjectMapper)

Properties

Link copied to clipboard
private val allNodes: List<Node>
Link copied to clipboard

Cursor of the last Node in nodes When paginating backwards, the cursor to continue

Link copied to clipboard

When paginating forwards, are there more items? Calculating using allNodes and nodes

Link copied to clipboard

When paginating backwards, are there more items? Calculating using allNodes and nodes

Link copied to clipboard
Link copied to clipboard
private val nodes: List<Node>
Link copied to clipboard
private val objectMapper: ObjectMapper
Link copied to clipboard
private val orderBy: Order<Node>

Order in which nodes are sorted, used for cursor generation

Link copied to clipboard

Cursor of the first Node in nodes When paginating forwards, the cursor to continue