跳到主要内容

useCountDescendants()

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

Defined in: use-tree.ts:41

统计树结构中的子孙数量

Type Parameters​

Type Parameter
T extends TreeEntityType

Parameters​

ParameterTypeDescription
EntityTypeT实体类
optionsUseOptions<EntityStaticType<T, "countDescendantsOptions">>树查询参数

Returns​

RxDBResource<number>

返回包含数量的资源 signal