class Edge<T : Node>(val node: T, val order: Order<T>)

Edge returned in the GraphQL API Consists of a Node and a Cursor The cursor is only valid in a specific connection context. Cursors can only be used, if the ordering of nodes is not changed. Cursors should not be used for long term storage.

Parameters

node

the Node at the start of the edge

order

necessary for Cursor generation

Constructors

Link copied to clipboard
constructor(node: T, order: Order<T>)

Properties

Link copied to clipboard
val node: T
Link copied to clipboard
private val order: Order<T>

Functions

Link copied to clipboard
fun cursor(@Autowired objectMapper: ObjectMapper): String

Generates the cursor associated with the edge