useCount()
function useCount<T>(EntityType, options): RxDBResource<number>;
Defined in: hooks.ts:239
Count entities matching the criteria
Type Parameters
| Type Parameter |
|---|
T extends EntityType |
Parameters
| Parameter | Type | Description |
|---|---|---|
EntityType | T | The entity class |
options | UseOptions<EntityStaticType<T, "countOptions">> | Query options |
Returns
RxDBResource<number>
A resource object containing the count