diff --git a/core/graphql.md b/core/graphql.md index d6777e29bea..6ff22f8dddb 100644 --- a/core/graphql.md +++ b/core/graphql.md @@ -1273,8 +1273,17 @@ To get the next page, you would add the `endCursor` from the current page as the ```graphql { - offers(first: 10, after: "endCursor") { - } + offers(first: 10, after: "endCursor") { + pageInfo { + endCursor + hasNextPage + } + edges { + node { + id + } + } + } } ``` @@ -1283,8 +1292,17 @@ parameter. ```graphql { - offers(last: 10, before: "startCursor") { - } + offers(last: 10, before: "startCursor") { + pageInfo { + startCursor + hasPreviousPage + } + edges { + node { + id + } + } + } } ``` @@ -3023,7 +3041,7 @@ For handling the upload of multiple files, iterate over `$context['args']['input In the constructor of the `MediaObjectNormalizer`, the injected Normalizer must be replaced with the one from the `api_platform.graphql.normalizer.item` from GraphQL: -````php +```php