跳到主要内容

useFindDescendants()

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

Defined in: hooks.ts:261

Find all descendant entities in a tree structure

Type Parameters

Type Parameter
T extends EntityType

Parameters

ParameterTypeDescription
EntityTypeTThe entity class
optionsUseOptions<EntityStaticType<T, "findTreeOptions">>Tree query options (entityId, depth, etc.)

Returns

RxDBResource<InstanceType<T>[]>

A reactive resource object containing descendant entities