Package graphql.relay
Interface PageInfo
-
- All Known Implementing Classes:
DefaultPageInfo
@PublicApi public interface PageInfo
Represents pagination information in Relay aboutedges
when used inside aconnection
See https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionCursor
getEndCursor()
ConnectionCursor
getStartCursor()
boolean
isHasNextPage()
boolean
isHasPreviousPage()
-
-
-
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
last
argument.
-
isHasNextPage
boolean isHasNextPage()
- Returns:
- true if and only if this page is not the last page. only meaningful when you gave the
first
argument.
-
-