Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions modules/ROOT/pages/guides/v4-migration/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down