Package graphql.relay
Interface Edge<T>
-
- All Known Implementing Classes:
DefaultEdge
@PublicApi public interface Edge<T>
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionCursor
getCursor()
T
getNode()
-
-
-
Method Detail
-
getNode
T getNode()
- Returns:
- the node of data that this edge represents
-
getCursor
ConnectionCursor getCursor()
- Returns:
- the cursor for this edge node
-
-