From a13903e7a1df3ee6c1fc6506a9ebf25b65da446c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 2 Oct 2018 22:53:05 +0200 Subject: [PATCH] Documentation --- Documentation/AssociationsBasics.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/AssociationsBasics.md b/Documentation/AssociationsBasics.md index dd52ebe05..644bcc5f4 100644 --- a/Documentation/AssociationsBasics.md +++ b/Documentation/AssociationsBasics.md @@ -1434,7 +1434,9 @@ An **HasMany** association lets you build the following aggregates: - `association.avg(column)` - `association.sum(column)` -The `annotate(with:)` method appends an aggregated value to the selected columns of a request. You can append as many aggregates values as needed. In order to access those values, you fetch a record type that has matching properties. +The `annotate(with:)` method appends an aggregated value to the selected columns of a request. You can append as many aggregates values as needed, from one or several associations. + +In order to access those values, you fetch records that have matching properties. For example: