useCountDescendants()
function useCountDescendants<T>(EntityType, options): RxDBResource<number>;
Defined in: hooks.ts:268
Count descendant entities in a tree structure
Type Parameters
| Type Parameter |
|---|
T extends EntityType |
Parameters
| Parameter | Type | Description |
|---|---|---|
EntityType | T | The entity class |
options | UseOptions<EntityStaticType<T, "findTreeOptions">> | Tree query options |
Returns
RxDBResource<number>
A resource object containing the count