跳到主要内容

useFind()

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

Defined in: rxdb-react/src/hooks.ts:222

查找多个匹配实体。

Type Parameters​

Type Parameter
T extends EntityType

Parameters​

ParameterTypeDescription
EntityTypeT实体类型。
optionsUseOptions<EntityStaticType<T, "findOptions">>find 查询选项或幂等 factory。

Returns​

RxDBResource<InstanceType<T>[]>

以空数组为初值的查询资源。