hasPreviousPage
hasPreviousPage is a boolean flag used in pagination systems to indicate whether there is a page before the current one. It is commonly included in responses to help clients render navigation controls and to signal whether a "previous" action is possible. In GraphQL Relay, for example, the PageInfo object exposes hasPreviousPage (and hasNextPage) along with startCursor and endCursor, which mark the range of items in the current page.
In offset-based pagination, hasPreviousPage is typically determined by the current offset or page number. If the
In cursor-based pagination, hasPreviousPage indicates whether there are more items before the current page when using
Notes: hasPreviousPage is a convenience flag. Its accuracy depends on implementation details such as whether total