跳到主要内容

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>

包含统计数的响应式资源对象