Package graphql.relay

Interface Connection<T>

All Known Implementing Classes:
DefaultConnection

@PublicApi public interface Connection<T>
This represents a connection in Relay, which is a list of edges as well as a pageInfo that describes the pagination of that list. See https://facebook.github.io/relay/graphql/connections.htm
  • Method Details

    • getEdges

      List<Edge<T>> getEdges()
      Returns:
      a list of Edges that are really a node of data and its cursor
    • getPageInfo

      PageInfo getPageInfo()
      Returns:
      PageInfo pagination data about that list of edges