graphql.relay.Connection Maven / Gradle / Ivy
package graphql.relay;
import graphql.PublicApi;
import java.util.List;
/**
* This represents a connection in Relay, which is a list of {@link graphql.relay.Edge edge}s
* as well as a {@link graphql.relay.PageInfo pageInfo} that describes the pagination of that list.
*
* See https://facebook.github.io/relay/graphql/connections.htm
*/
@PublicApi
public interface Connection {
/**
* @return a list of {@link graphql.relay.Edge}s that are really a node of data and its cursor
*/
List> getEdges();
/**
* @return {@link graphql.relay.PageInfo} pagination data about that list of edges
*/
PageInfo getPageInfo();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy