跳到主要内容

useFindByCursor()

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

Defined in: hooks.ts:215

Find entities using cursor-based pagination

Type Parameters

Type Parameter
T extends EntityType

Parameters

ParameterTypeDescription
EntityTypeTThe entity class
optionsUseOptions<EntityStaticType<T, "findByCursorOptions">>Cursor pagination options (where, orderBy, limit, after, before)

Returns

RxDBResource<InstanceType<T>[]>

A resource object containing an array of entities