Documentation

This commit is contained in:
Gwendal Roué committed 2018-10-07 18:25:33 +02:00
1 parent 445ec18d6e
commit 8a983274af
1 file changed
+1
+1
View File
@@ -1421,6 +1421,7 @@ For example, you'll use the `isEmpty` aggregate when you want, say, to fetch all
```swift
let lazyAuthors: [Author] = try Author.having(Author.books.isEmpty).fetchAll(db)
let productiveAuthors: [Author] = try Author.having(!Author.books.isEmpty).fetchAll(db)
```
And you'll use the `count` aggregate in order to fetch all authors along with the number of books they wrote: