graphql.relay.Edge Maven / Gradle / Ivy
package graphql.relay;
import graphql.PublicApi;
/**
* Represents an edge in Relay which is essentially a node of data T and the cursor for that node.
*
* See https://facebook.github.io/relay/graphql/connections.htm#sec-Edge-Types
*/
@PublicApi
public interface Edge {
/**
* @return the node of data that this edge represents
*/
T getNode();
/**
* @return the cursor for this edge node
*/
ConnectionCursor getCursor();
}