From 1dcacea90ee52f0f590b2ad15cff745e643e920f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Delr=C3=A9?= Date: Thu, 19 Nov 2026 10:57:35 +0100 Subject: [PATCH] docs(graphql): fix invalid pagination queries and unclosed code block Empty selection sets are invalid GraphQL and are reformatted by Prettier 3.10, which breaks the formatting check on every pull request. --- core/graphql.md | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) 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