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
Return
the generated Connection
Parameters
queryResult
the result of the database query
objectMapper
necessary for cursor generation
Type Parameters
T
the Node type of the returned Connection