diff --git a/Documentation/AssociationsBasics.md b/Documentation/AssociationsBasics.md index ecf2ba4e0..b47d56558 100644 --- a/Documentation/AssociationsBasics.md +++ b/Documentation/AssociationsBasics.md @@ -149,7 +149,7 @@ Generally speaking, associations use the [TableRecord], [FetchableRecord], and [ // Who's prolific? let authors = try dbQueue.read { db in try Author - .having(Author.book.count >= 20) + .having(Author.books.count >= 20) .fetchAll(db) // [Author] } ```