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