object Companion

Functions

Link copied to clipboard
fun <T : Node> fromQueryResult(queryResult: NodeQueryResult<T>, objectMapper: ObjectMapper): Connection<T>

Creates a Connection from a NodeQueryResult The provided queryResult may contain one more Node then defined by first or last to calculate hasNextPage and hasPreviousPage. If so, this node is removed from the node list