useFindAncestors()
function useFindAncestors<T>(EntityType, options): RxDBResource<InstanceType<T>[]>;
Defined in: hooks.ts:260
查找树结构中的所有祖先实体
Type Parameters
| Type Parameter |
|---|
T extends TreeEntityType |
Parameters
| Parameter | Type | Description |
|---|---|---|
EntityType | T | 实体类 |
options | UseOptions<EntityStaticType<T, "findTreeOptions">> | 树查询参数 |
Returns
RxDBResource<InstanceType<T>[]>
返回包含祖先实体的资源 signal