DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/query-db-collection/interfaces/QueryCollectionMeta.md
QueryCollectionMeta
Defined in: packages/query-db-collection/src/global.ts:30
Base interface for Query Collection meta properties. Users can extend this interface to add their own custom properties while preserving loadSubsetOptions.
Example#
ts
declare module "@tanstack/query-db-collection" {
interface QueryCollectionMeta {
myCustomProperty: string
userId?: number
}
}Extends#
- Record<string, unknown>
Indexable#
ts
[key: string]: unknownProperties#
loadSubsetOptions?#
ts
optional loadSubsetOptions: LoadSubsetOptions;Defined in: packages/query-db-collection/src/global.ts:31