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

graphql.relay.Edge Maven / Gradle / Ivy

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy