From b74f91efa685f422a4e0cd28f8a6dab00e7ef96f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Tue, 12 Aug 2025 09:23:24 +0200 Subject: [PATCH 1/4] Removed mention about enabling pagination --- docs/api/graphql/graphql_queries.md | 4 --- .../field_type_reference/relationlistfield.md | 31 ++----------------- 2 files changed, 3 insertions(+), 32 deletions(-) diff --git a/docs/api/graphql/graphql_queries.md b/docs/api/graphql/graphql_queries.md index a4efa75763..d38629b8dd 100644 --- a/docs/api/graphql/graphql_queries.md +++ b/docs/api/graphql/graphql_queries.md @@ -838,7 +838,3 @@ children(first: 3, after: "YXJyYXljb25uZWN0aW9uOjM=") ### Get Matrix field type To get a Matrix field type with GraphQL, see [Matrix field type reference](matrixfield.md). - -### Enable pagination for RelationList field type - -To learn how to enable pagination for RelationList field type, see the [RelationList field type reference](relationlistfield.md). diff --git a/docs/content_management/field_types/field_type_reference/relationlistfield.md b/docs/content_management/field_types/field_type_reference/relationlistfield.md index 34c9c37367..164b98028c 100644 --- a/docs/content_management/field_types/field_type_reference/relationlistfield.md +++ b/docs/content_management/field_types/field_type_reference/relationlistfield.md @@ -108,32 +108,7 @@ $validators = [ ]; ``` -### Enable pagination in GraphQL - -To enable pagination for Relation List field type, set the `ibexa.graphql.schema.ibexa_object_relation_list.enable_pagination` parameter to `true`. - -!!! note - - The pagination is enabled by default in [[= product_name =]] v5 and the parameter is removed. - -This allows you to query for only a subset of relations, as in the following example: - -``` graphql -query { - content { - relations(contentId: 71) { - rel(first: 5) { - totalCount, - edges { - node { - _contentInfo { - id - } - } - } - } - } - } -} -``` +### GraphQL integration +This field type supports paginating the results when queried using [GraphQL](graphql.md). +To learn more, see [Pagination in GraphQL](graphql_queries.md#pagination). From 03f340099f3123bda31e7b2a6e2a55128ff4a534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Tue, 12 Aug 2025 09:31:00 +0200 Subject: [PATCH 2/4] Fixed link --- docs/release_notes/ibexa_dxp_v4.6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/release_notes/ibexa_dxp_v4.6.md b/docs/release_notes/ibexa_dxp_v4.6.md index 65ba6eba4a..d76801f1e9 100644 --- a/docs/release_notes/ibexa_dxp_v4.6.md +++ b/docs/release_notes/ibexa_dxp_v4.6.md @@ -216,7 +216,7 @@ In addition, you can now use the [Taxonomy limitation](limitation_reference.md#t #### Pagination for ezobjectrelationlist in GraphQL -To improve performance and gain greater control over the returned responses from the [GraphQL API](graphql.md), you can now [enable pagination](relationlistfield.md#enable-pagination-in-graphql) of relations specified using the RelationList field type. +To improve performance and gain greater control over the returned responses from the [GraphQL API](graphql.md), you can now [enable pagination]((https://doc.ibexa.co/en/4.6/content_management/field_types/field_type_reference/relationlistfield#enable-pagination-in-graphql) of relations specified using the RelationList field type. #### Breaking changes From 626b92ac8c514e32efc276896888b43569d5f8c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Thu, 4 Sep 2025 11:47:10 +0200 Subject: [PATCH 3/4] Update docs/content_management/field_types/field_type_reference/relationlistfield.md Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> --- .../field_types/field_type_reference/relationlistfield.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content_management/field_types/field_type_reference/relationlistfield.md b/docs/content_management/field_types/field_type_reference/relationlistfield.md index 164b98028c..f920a2a9ae 100644 --- a/docs/content_management/field_types/field_type_reference/relationlistfield.md +++ b/docs/content_management/field_types/field_type_reference/relationlistfield.md @@ -110,5 +110,5 @@ $validators = [ ### GraphQL integration -This field type supports paginating the results when queried using [GraphQL](graphql.md). +This field type is paginating the results when queried using [GraphQL](graphql.md). To learn more, see [Pagination in GraphQL](graphql_queries.md#pagination). From df1f7ce1ed3a6468561cd30cff209563492bce31 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Mon, 22 Sep 2025 13:19:42 +0200 Subject: [PATCH 4/4] GraphQL `relations` pagination change from 4.6 to 5.0 (#2891) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * About …`ibexa_object_relation_list.enable_pagination` * About …`ibexa_object_relation_list.enable_pagination` * About …`ibexa_object_relation_list.enable_pagination` * Apply suggestions from code review Co-authored-by: Marek Nocoń --------- Co-authored-by: Marek Nocoń --- docs/update_and_migration/from_4.6/update_to_5.0.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/update_and_migration/from_4.6/update_to_5.0.md b/docs/update_and_migration/from_4.6/update_to_5.0.md index dd749a6603..9e1c0bb2a0 100644 --- a/docs/update_and_migration/from_4.6/update_to_5.0.md +++ b/docs/update_and_migration/from_4.6/update_to_5.0.md @@ -1044,6 +1044,14 @@ If you are using GraphQL in your project, you can generate its schema by running php bin/console ibexa:graphql:generate-schema ``` +### Upgrade GraphQL usage + +- In 4.6, pagination for [RelationList field type](relationlistfield.md) is disabled by default, and can be enabled using the `ibexa.graphql.schema.ibexa_object_relation_list.enable_pagination` parameter +- In 5.0, pagination for RelationList field type is always activated and can't be disabled. The previous parameter doesn't exist anymore and is ignored if set + +If you have code based on `relations` request returning the entire list, you have to update it. +For more information, see [Pagination in GraphQL](graphql_queries.md#pagination). + ### Update search indexes Ensure your search index is up to date with the following command: