Skip to content

Commit 4793154

Browse files
authored
feat(graphql): document hasNextPage in paginationInfo (#1903)
Document feature offered in api-platform/core#6120
1 parent 2e21863 commit 4793154

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/graphql.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,7 @@ A `paginationInfo` field can be queried to obtain the following information:
14111411
* `itemsPerPage`: the number of items per page. To change it, follow the [pagination documentation](pagination.md#changing-the-number-of-items-per-page).
14121412
* `lastPage`: the last page of the collection.
14131413
* `totalCount`: the total number of items in the collection.
1414+
* `hasNextPage`: does the current collection offers a next page.
14141415

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

@@ -1426,6 +1427,7 @@ An example of a query:
14261427
itemsPerPage
14271428
lastPage
14281429
totalCount
1430+
hasNextPage
14291431
}
14301432
}
14311433
}

0 commit comments

Comments
 (0)