Open History to see the last commit
1---
2id: rxdbCollectionOptions
3title: rxdbCollectionOptions
4---
5
6## Call Signature
7
8```ts
9function rxdbCollectionOptions<T>(config): CollectionConfig<InferSchemaOutput<T>, string, T, UtilsRecord> & object;
10```
11
12Defined in: [rxdb.ts:90](https://github.com/TanStack/db/blob/main/packages/rxdb-db-collection/src/rxdb.ts#L90)
13
14Creates RxDB collection options for use with a standard Collection
15
16### Type Parameters
17
18#### T
19
20`T` *extends* `StandardSchemaV1`\<`unknown`, `unknown`\>
21
22### Parameters
23
24#### config
25
26[`RxDBCollectionConfig`](../type-aliases/RxDBCollectionConfig.md)\<`InferSchemaOutput`\<`T`\>, `T`\>
27
28Configuration options for the RxDB collection
29
30### Returns
31
32`CollectionConfig`\<`InferSchemaOutput`\<`T`\>, `string`, `T`, `UtilsRecord`\> & `object`
33
34Collection options with utilities
35
36## Call Signature
37
38```ts
39function rxdbCollectionOptions<T>(config): CollectionConfig<T, string, never, UtilsRecord> & object;
40```
41
42Defined in: [rxdb.ts:97](https://github.com/TanStack/db/blob/main/packages/rxdb-db-collection/src/rxdb.ts#L97)
43
44Creates RxDB collection options for use with a standard Collection
45
46### Type Parameters
47
48#### T
49
50`T` *extends* `object`
51
52### Parameters
53
54#### config
55
56`Omit`\<`BaseCollectionConfig`\<`T`, `string`, `never`, `UtilsRecord`, `any`\>, `"onInsert"` \| `"onUpdate"` \| `"onDelete"` \| `"getKey"`\> & `object` & `object`
57
58Configuration options for the RxDB collection
59
60### Returns
61
62`CollectionConfig`\<`T`, `string`, `never`, `UtilsRecord`\> & `object`
63
64Collection options with utilities