跳到主要内容

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、深度等)

Returns​

RxDBResource<InstanceType<T>[]>

返回包含子孙实体的资源 signal