Skip to content

Commit

Permalink
feat(graphql): document hasNextPage in paginationInfo
Browse files Browse the repository at this point in the history
Document feature offered in api-platform/core#6120
  • Loading branch information
xavierleune authored Feb 20, 2024
1 parent 2e21863 commit a2c3038
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,7 @@ A `paginationInfo` field can be queried to obtain the following information:
* `itemsPerPage`: the number of items per page. To change it, follow the [pagination documentation](pagination.md#changing-the-number-of-items-per-page).
* `lastPage`: the last page of the collection.
* `totalCount`: the total number of items in the collection.
* `hasNextPage`: does the current collection offers a next page.

The collection items data are available in the `collection` field.

Expand All @@ -1426,6 +1427,7 @@ An example of a query:
itemsPerPage
lastPage
totalCount
hasNextPage
}
}
}
Expand Down

0 comments on commit a2c3038

Please sign in to comment.