type RxDBCollectionConfig<T, TSchema> = Omit<BaseCollectionConfig<T, string, TSchema>, "onInsert" | "onUpdate" | "onDelete" | "getKey"> & object;
Defined in: rxdb.ts:49
Configuration interface for RxDB collection options
rxCollection: RxCollection<T, unknown, unknown, unknown>;
The RxCollection from a RxDB Database instance.
optional syncBatchSize: number;
The maximum number of documents to read from the RxDB collection in a single batch during the initial sync between RxDB and the in-memory TanStack DB collection.
Adjust this depending on your expected collection size and performance characteristics of the chosen RxDB storage adapter.
T extends object = Record<string, unknown>
The explicit type of items in the collection (highest priority). Use the document type of your RxCollection here.
TSchema extends StandardSchemaV1 = never
The schema type for validation and type inference (second priority)
Type resolution follows a priority order:
You should provide EITHER an explicit type OR a schema, but not both, as they would conflict. Notice that primary keys in RxDB must always be a string.