Skip to content

Commit 5e0a91d

Browse files
authored
Update QueryCookbook.md
1 parent efc3286 commit 5e0a91d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/StructuredQueriesCore/Documentation.docc/Articles/QueryCookbook.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ large and complex queries.
1212
* [Reusable column queries](#Reusable-column-queries)
1313
* [Default scopes](#Default-scopes)
1414
* [Custom selections](#Custom-selections)
15-
* [Pre-loading associations](#Pre-loading-associations)
15+
* [Pre-loading associations with JSON](#Pre-loading-associations-with-json)
1616

1717
### Reusable table queries
1818

@@ -346,7 +346,7 @@ And a query that selects into this type can be defined like so:
346346
}
347347
}
348348

349-
### Pre-loading associations
349+
### Pre-loading associations with JSON
350350

351351
There are times you may want to load rows from a table along with the data from some associated
352352
table. For example, querying for all reminders lists along with an array of the reminders in each
@@ -395,7 +395,7 @@ this is doing work that SQL actually excels at. In fact, the condition inside th
395395
suspiciously like a join constraint, which should give us a hint that what we are doing is not
396396
quite right.
397397

398-
A better way to do this is to use the `@Selection` macro described above
398+
Another way to do this is to use the `@Selection` macro described above
399399
(<doc:QueryCookbook#Custom-selections>), along with a ``JSONRepresentation`` of the collection
400400
of reminders you want to load for each list:
401401

0 commit comments

Comments
 (0)