API reference@melon-db/db-react
useCollection
@melon-db/db-react — useCollection
@melon-db/db-react API Reference
Function: useCollection()
useCollection<
T>(name):MelonCollection<T>
Defined in: hooks.ts:207
Returns a collection by name from the database context.
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends Record<string, unknown> | Record<string, unknown> |
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
MelonCollection<T>
