useFindAncestors()
function useFindAncestors<T>(EntityType, options): RxDBResource<InstanceType<T>[]>;
Defined in: use-tree.ts:59
查找树实体的全部祖先。
Type Parameters
| Type Parameter |
|---|
T extends TreeEntityType |
Parameters
| Parameter | Type | Description |
|---|---|---|
EntityType | T | 树实体类型。 |
options | UseOptions<EntityStaticType<T, "findAncestorsOptions">> | 树查询选项或幂等 factory。 |
Returns
RxDBResource<InstanceType<T>[]>
祖先实体数组的查询资源。