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/functions/getPublicCollection.md
getPublicCollection
ts
function getPublicCollection<T>(collection): T;Defined in: packages/db/src/live-query-adapter.ts:38
The Collection an adapter hands users as collection. A pooled live query stands in for its live-query Collection and builds it only when touched.
Type Parameters#
T#
T extends | Collection<any, any, any, StandardSchemaV1<unknown, unknown>, any> | null | undefined
Parameters#
collection#
T
Returns#
T