From 8a983274afa8a866846e42644516bc08515d975c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 7 Oct 2018 18:25:33 +0200 Subject: [PATCH] Documentation --- Documentation/AssociationsBasics.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/AssociationsBasics.md b/Documentation/AssociationsBasics.md index 3d4de40de..5c030ca53 100644 --- a/Documentation/AssociationsBasics.md +++ b/Documentation/AssociationsBasics.md @@ -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: