跳到主要内容

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">>树形查询选项

Returns​

RxDBResource<InstanceType<T>[]>

包含祖先实体的响应式资源对象