All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.relay.Connection Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
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