Skip to content

Commit 3459f21

Browse files
authored
Merge pull request #148 from neo4j/fix-docs-for-aggregation-default-3.x
Fix docs for aggregation default 3.x
2 parents 3ccbb2f + 6dde83a commit 3459f21

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

modules/ROOT/pages/guides/v4-migration/index.adoc

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -559,27 +559,6 @@ const neoSchema = new Neo4jGraphQL({
559559
})
560560
----
561561

562-
[[opt-in-aggregation]]
563-
=== Opt-in Aggregation
564-
565-
Aggregation operations are no longer generated by default.
566-
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`].
567-
568-
569-
You can enable the operation fields `actorsAggregate` and `actedInAggregate` like this:
570-
571-
[source, graphql, indent=0]
572-
----
573-
type Movie {
574-
title: String!
575-
}
576-
577-
type Actor @query(aggregate: true) {
578-
name: String!
579-
actedIn: [Movie!]! @relationship(type: "ACTED_IN", direction: OUT, aggregate: true)
580-
}
581-
----
582-
583562
=== Session configuration
584563

585564
Session configuration is now available only in the context under the `sessionConfig` key.

modules/ROOT/pages/type-definitions/schema-configuration/type-configuration.adoc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ This directive is used to limit the availability of query operations in the libr
4646
directive @query(read: Boolean! = true, aggregate: Boolean! = false) on OBJECT | SCHEMA
4747
----
4848

49-
[NOTE]
50-
====
51-
Aggregations will no longer be generated by default in the 4.0.0 version of the library.
52-
See xref::guides/v4-migration/index.adoc#opt-in-aggregation[`Opt-in Aggregation`] for more information.
53-
====
54-
5549
=== Usage
5650

5751
==== Disable _movies_ and _moviesConnection_ operations

0 commit comments

Comments
 (0)