Package graphql.relay

Interface PageInfo

All Known Implementing Classes:
DefaultPageInfo

@PublicApi public interface PageInfo
Represents pagination information in Relay about edges when used inside a connection See https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo
  • Method Details

    • 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.