跳到主要内容

useFindAncestors()

function useFindAncestors<T>(EntityType, options): RxDBResource<InstanceType<T>[]>;

Defined in: use-tree.ts:59

查找树实体的全部祖先。

Type Parameters​

Type Parameter
T extends TreeEntityType

Parameters​

ParameterTypeDescription
EntityTypeT树实体类型。
optionsUseOptions<EntityStaticType<T, "findAncestorsOptions">>树查询选项或幂等 factory。

Returns​

RxDBResource<InstanceType<T>[]>

祖先实体数组的查询资源。