mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Documentation
This commit is contained in:
1 parent
c25bc1d5fa
commit
a13903e7a1
1 file changed
+3
-1
@@ -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:
|
||||
|
||||
|
||||
Reference in new issue
Block a user