mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Association documentation
This commit is contained in:
1 parent
64bcbde1ab
commit
4b565ae262
1 file changed
+1
-1
@@ -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]
|
||||
}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user