Connection

interface Connection<E : Edge<N>, N> : Object(source)

A paginated list of Edges plus a pageInfo object describing page boundaries.

Declare the type in your .graphqls schema — codegen generates the implementation and a builder extending viaduct.api.internal.ConnectionBuilder with viaduct.api.internal.ConnectionBuilder.fromSlice, viaduct.api.internal.ConnectionBuilder.fromList, and viaduct.api.internal.ConnectionBuilder.fromEdges.

Parameters

E

The edge type wrapping nodes of type N and carrying a per-item cursor.

N

The node type returned by each edge.

See also

ConnectionBuilder