@tanstack/db 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -286,7 +286,8 @@ const messagesWithContent = createLiveQueryCollection((q) =>
|
|
|
286
286
|
### Includes rules
|
|
287
287
|
|
|
288
288
|
- The subquery **must** have a `where` clause with an `eq()` correlating a parent alias with a child alias. The library extracts this automatically as the join condition.
|
|
289
|
-
- `toArray()`
|
|
289
|
+
- `toArray()` works with both scalar selects (e.g., `select(({ c }) => c.text)` → `string[]`) and object selects (e.g., `select(({ c }) => ({ id: c.id, title: c.title }))` → `Array<{id, title}>`).
|
|
290
|
+
- `concat(toArray())` requires a **scalar** `select` to concatenate into a string.
|
|
290
291
|
- Collection includes (bare subquery) require an **object** `select`.
|
|
291
292
|
- Includes subqueries are compiled into the same incremental pipeline as the parent query -- they are not separate live queries.
|
|
292
293
|
|