From decf73364d4792aa3775651b250adab626405f9d Mon Sep 17 00:00:00 2001 From: Richard Sill Date: Wed, 15 May 2024 09:24:45 +0200 Subject: [PATCH 1/2] Revert "Revert "removed an admonition box with doc changes which never made it live"" This reverts commit 3ccbb2f0029e37ad9a10be7fae887109dba142bd. --- .../schema-configuration/type-configuration.adoc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/ROOT/pages/type-definitions/schema-configuration/type-configuration.adoc b/modules/ROOT/pages/type-definitions/schema-configuration/type-configuration.adoc index c1978a5a..4d7285ac 100644 --- a/modules/ROOT/pages/type-definitions/schema-configuration/type-configuration.adoc +++ b/modules/ROOT/pages/type-definitions/schema-configuration/type-configuration.adoc @@ -46,12 +46,6 @@ This directive is used to limit the availability of query operations in the libr directive @query(read: Boolean! = true, aggregate: Boolean! = false) on OBJECT | SCHEMA ---- -[NOTE] -==== -Aggregations will no longer be generated by default in the 4.0.0 version of the library. -See xref::guides/v4-migration/index.adoc#opt-in-aggregation[`Opt-in Aggregation`] for more information. -==== - === Usage ==== Disable _movies_ and _moviesConnection_ operations From 6dde83af1cad3bad1c24a40d5ab1e126098c4487 Mon Sep 17 00:00:00 2001 From: Richard Sill Date: Wed, 15 May 2024 16:38:53 +0200 Subject: [PATCH 2/2] removed section on aggregation opt-in --- .../ROOT/pages/guides/v4-migration/index.adoc | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/modules/ROOT/pages/guides/v4-migration/index.adoc b/modules/ROOT/pages/guides/v4-migration/index.adoc index 2d4b043f..01f61186 100644 --- a/modules/ROOT/pages/guides/v4-migration/index.adoc +++ b/modules/ROOT/pages/guides/v4-migration/index.adoc @@ -559,27 +559,6 @@ const neoSchema = new Neo4jGraphQL({ }) ---- -[[opt-in-aggregation]] -=== Opt-in Aggregation - -Aggregation operations are no longer generated by default. -They can be enabled case by case using the directives xref::type-definitions/schema-configuration/type-configuration.adoc#_query[`@query`] and xref::type-definitions/schema-configuration/field-configuration.adoc#_relationship[`@relationship`]. - - -You can enable the operation fields `actorsAggregate` and `actedInAggregate` like this: - -[source, graphql, indent=0] ----- -type Movie { - title: String! -} - -type Actor @query(aggregate: true) { - name: String! - actedIn: [Movie!]! @relationship(type: "ACTED_IN", direction: OUT, aggregate: true) -} ----- - === Session configuration Session configuration is now available only in the context under the `sessionConfig` key.