You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add optional compareOptions to the Collection Config which act as col… (#762)
* Add optional compareOptions to the Collection Config which act as collection-wide config and allow queries to override those.
* Fix import
* changeset
* Ran prettier
* update docs
* Live queries inherit compare options from collection in the FROM clause
* Explicit compare options for live queries
* Rename compareOptions to defaultStringCollation in the collection config and live query collection config
* Docs update
---------
Co-authored-by: Sam Willis <sam.willis@gmail.com>
Copy file name to clipboardExpand all lines: docs/reference/functions/createCollection.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ title: createCollection
11
11
function createCollection<T, TKey, TUtils>(options):Collection<InferSchemaOutput<T>, TKey, TUtils, T, InferSchemaInput<T>> &NonSingleResult;
12
12
```
13
13
14
-
Defined in: [packages/db/src/collection/index.ts:130](https://github.com/TanStack/db/blob/main/packages/db/src/collection/index.ts#L130)
14
+
Defined in: [packages/db/src/collection/index.ts:131](https://github.com/TanStack/db/blob/main/packages/db/src/collection/index.ts#L131)
15
15
16
16
Creates a new Collection instance with the given configuration
17
17
@@ -120,7 +120,7 @@ const todos = createCollection({
120
120
function createCollection<T, TKey, TUtils>(options):Collection<InferSchemaOutput<T>, TKey, TUtils, T, InferSchemaInput<T>> &SingleResult;
121
121
```
122
122
123
-
Defined in: [packages/db/src/collection/index.ts:143](https://github.com/TanStack/db/blob/main/packages/db/src/collection/index.ts#L143)
123
+
Defined in: [packages/db/src/collection/index.ts:144](https://github.com/TanStack/db/blob/main/packages/db/src/collection/index.ts#L144)
124
124
125
125
Creates a new Collection instance with the given configuration
126
126
@@ -229,7 +229,7 @@ const todos = createCollection({
229
229
function createCollection<T, TKey, TUtils>(options):Collection<T, TKey, TUtils, never, T> &NonSingleResult;
230
230
```
231
231
232
-
Defined in: [packages/db/src/collection/index.ts:157](https://github.com/TanStack/db/blob/main/packages/db/src/collection/index.ts#L157)
232
+
Defined in: [packages/db/src/collection/index.ts:158](https://github.com/TanStack/db/blob/main/packages/db/src/collection/index.ts#L158)
233
233
234
234
Creates a new Collection instance with the given configuration
235
235
@@ -338,7 +338,7 @@ const todos = createCollection({
338
338
function createCollection<T, TKey, TUtils>(options):Collection<T, TKey, TUtils, never, T> &SingleResult;
339
339
```
340
340
341
-
Defined in: [packages/db/src/collection/index.ts:170](https://github.com/TanStack/db/blob/main/packages/db/src/collection/index.ts#L170)
341
+
Defined in: [packages/db/src/collection/index.ts:171](https://github.com/TanStack/db/blob/main/packages/db/src/collection/index.ts#L171)
342
342
343
343
Creates a new Collection instance with the given configuration
0 commit comments