跳到主要内容

useFindDescendants()

function useFindDescendants<T>(EntityType, options): RxDBResource<InstanceType<T>[]>;

Defined in: use-tree.ts:23

查找树形结构下的所有子孙实体

Type Parameters​

Type Parameter
T extends TreeEntityType

Parameters​

ParameterTypeDescription
EntityTypeT实体类
optionsUseOptions<EntityStaticType<T, "findDescendantsOptions">>树形查询选项(entityId、depth 等)

Returns​

RxDBResource<InstanceType<T>[]>

包含子孙实体的响应式资源对象