Package graphql.relay
Interface PageInfo
-
- All Known Implementing Classes:
DefaultPageInfo
@PublicApi public interface PageInfo
Represents pagination information in Relay aboutedgeswhen used inside aconnectionSee https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionCursorgetEndCursor()ConnectionCursorgetStartCursor()booleanisHasNextPage()booleanisHasPreviousPage()
-
-
-
Method Detail
-
getStartCursor
ConnectionCursor getStartCursor()
- Returns:
- cursor to the first edge, or null if this page is empty.
-
getEndCursor
ConnectionCursor getEndCursor()
- Returns:
- cursor to the last edge, or null if this page is empty.
-
isHasPreviousPage
boolean isHasPreviousPage()
- Returns:
- true if and only if this page is not the first page. only meaningful when you gave the
lastargument.
-
isHasNextPage
boolean isHasNextPage()
- Returns:
- true if and only if this page is not the last page. only meaningful when you gave the
firstargument.
-
-