跳到主要内容

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>[]>

返回包含祖先实体的资源 signal