跳到主要内容

useFindAll()

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

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

查找全部实体。

Type Parameters​

Type Parameter
T extends EntityType

Parameters​

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

Returns​

RxDBResource<InstanceType<T>[]>

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