跳到主要内容

useCount()

function useCount<T>(EntityType, options): RxDBResource<number>;

Defined in: hooks.ts:245

Count entities matching the criteria

Type Parameters

Type Parameter
T extends EntityType

Parameters

ParameterTypeDescription
EntityTypeTThe entity class
optionsUseOptions<EntityStaticType<T, "countOptions">>Query options

Returns

RxDBResource<number>

A reactive resource object containing the count