Connection

caliban.relay.Connection
See theConnection companion class
object Connection

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Connection.type

Members list

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 parameters

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

Attributes

Returns

a paginated connection