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
16 changes: 0 additions & 16 deletions modules/ROOT/pages/migration/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -910,22 +910,6 @@ type Record @limit(default: 10, max: 100) {
They can be used to configure not only if fields are readable or writable, but also when they should be readable or writable.
a|* `@readonly` -> `@settable(onCreate: false, onUpdate: false)`
* `@writeonly` -> `@selectable(onRead: false, onAggregate: false)`

|`@query` and `@relationship`
|Aggregation operations are no longer generated by default.
They can be enabled case by case using the directives xref::/schema-configuration/type-configuration.adoc#_query[`@query`] and xref::/schema-configuration/field-configuration.adoc#_relationship[`@relationship`].
a|
[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)
}
----
|===

[relationship-aggregate]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,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 are no longer generated by default in the 4.0.0 version of the library.
See xref:migration/index.adoc#_updated_directives[Updated directives] for more information.
====

=== Usage

.Disable _movies_ and _moviesConnection_ operations
Expand Down