diff --git a/Documentation/AssociationsBasics.md b/Documentation/AssociationsBasics.md index e5fca74be..22f17d1e8 100644 --- a/Documentation/AssociationsBasics.md +++ b/Documentation/AssociationsBasics.md @@ -857,10 +857,6 @@ Before we describe them in detail, let's see a few requests they can build: let request = Author .including(all: Author.books) -/// All authors with their three most popular books -let request = Author - .including(all: Author.books.order(Column("popularity").desc).limit(3)) - /// All authors with their awarded books let request = Author .including(all: Author.books.having(Book.awards.isEmpty == false)) @@ -1275,26 +1271,6 @@ To specify the default selection for all inclusions of a given type, see [Column Associations support more refinements: -- `limit` - - Fetch all authors with their three most popular books: - - ```swift - struct AuthorInfo: FetchableRecord, Decodable { - var author: Author - var books: [Book] - } - - let mostPopularBooks = Author.books - .order(Column("popularity").desc) - .limit(3) - - let authorInfos: [AuthorInfo] = try Author - .including(all: mostPopularBooks) - .asRequest(of: AuthorInfo.self) - .fetchAll(db) - ``` - - `distinct` Fetch all authors with the kinds of books they write (novels, poems, plays, etc): diff --git a/Documentation/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/xcshareddata/xcschemes/GRDBDemoWatchOS.xcscheme b/Documentation/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/xcshareddata/xcschemes/GRDBDemoWatchOS.xcscheme index 237e9f7b3..4fbad19f2 100644 --- a/Documentation/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/xcshareddata/xcschemes/GRDBDemoWatchOS.xcscheme +++ b/Documentation/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/xcshareddata/xcschemes/GRDBDemoWatchOS.xcscheme @@ -78,8 +78,10 @@ debugDocumentVersioning = "YES" debugServiceExtension = "internal" allowLocationSimulation = "YES"> - + - + - + - + + + + +