跳到主要内容

useCountDescendants()

function useCountDescendants<T>(EntityType, options): RxDBResource<number>;

Defined in: hooks.ts:274

Count descendant entities in a tree structure

Type Parameters

Type Parameter
T extends EntityType

Parameters

ParameterTypeDescription
EntityTypeTThe entity class
optionsUseOptions<EntityStaticType<T, "findTreeOptions">>Tree query options

Returns

RxDBResource<number>

A reactive resource object containing the count