Connection

interface Connection<E : Edge<N>?, N> : GraphQLObject(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.java.api.internal.ConnectionBuilder with fromSlice, fromList, and fromEdges.

Java equivalent of Kotlin's viaduct.api.types.Connection.

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