Connection

object Connection
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def fromList[A, E <: Edge[Base64Cursor, _], C <: Connection[E]](makeConnection: (PageInfo, List[E]) => C)(makeEdge: (A, Int) => E)(items: List[A], args: Pagination[Base64Cursor]): C

A function that returns a sliced result set based on some mapping functions, a full input list of entities and pagination information.

A function that returns a sliced result set based on some mapping functions, a full input list of entities and pagination information.

Value Params
args

a set of caliban.relay.Pagination arguments

items

the list of items to paginate

makeConnection

translates a caliban.relay.PageInfo object and a list of edges to a Connection

makeEdge

translates an entity and an offset to an Edge

Returns

a paginated connection