useFindDescendants()
function useFindDescendants<T>(EntityType, options): RxDBResource<InstanceType<T>[]>;
Defined in: use-tree.ts:23
查找树形结构下的所有子孙实体
Type Parameters
| Type Parameter |
|---|
T extends TreeEntityType |
Parameters
| Parameter | Type | Description |
|---|---|---|
EntityType | T | 实体类 |
options | UseOptions<EntityStaticType<T, "findDescendantsOptions">> | 树形查询选项(entityId、depth 等) |
Returns
RxDBResource<InstanceType<T>[]>
包含子孙实体的响应式资源对象