File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
modules/ROOT/pages/migration Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -564,3 +564,44 @@ A warning is raised if you use a deprecated value.
564564=== Deprecated aggregations on ID fields
565565
566566Aggregations 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`.
You can’t perform that action at this time.
0 commit comments