跳到主要内容

useCountAncestors()

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

Defined in: hooks.ts:293

Count ancestor 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 resource object containing the count