Skip to content

Commit 5b5ff7f

Browse files
committed
Add aggregate to migration guide deprecations
1 parent 50ff984 commit 5b5ff7f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

modules/ROOT/pages/migration/index.adoc

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,3 +564,44 @@ A warning is raised if you use a deprecated value.
564564
=== Deprecated aggregations on ID fields
565565

566566
Aggregations on ID fields are now deprecated and will be removed in the future.
567+
568+
569+
=== Deprecated Aggregate operations
570+
571+
Explicit Aggregate operations, both top level and nested, have been deprecated in favor of the fields `aggregate` inside Connection operations.
572+
573+
So, for example:
574+
575+
[source, graphql, indent=0]
576+
----
577+
query {
578+
moviesAggregate {
579+
count
580+
title {
581+
shortest
582+
}
583+
}
584+
}
585+
----
586+
587+
Is deprecated in favor of:
588+
589+
[source, graphql, indent=0]
590+
----
591+
query {
592+
moviesConnection {
593+
aggregate {
594+
node {
595+
title {
596+
shortest
597+
}
598+
}
599+
count {
600+
nodes
601+
}
602+
}
603+
}
604+
}
605+
----
606+
607+
Note that `count` now returns the explcit fields `nodes` and `edges`.

0 commit comments

Comments
 (0)