跳到主要内容

FindOptions<T, U, W>

Defined in: packages/rxdb/src/repository/query-options.interface.ts:46

Find 查询选项

Type Parameters

Type ParameterDefault type
T extends EntityTypeEntityType
URuleGroup<InstanceType<T>>
W extends stringstring

Properties

groupBy?

optional groupBy?: string[];

Defined in: packages/rxdb/src/repository/query-options.interface.ts:57

分组字段列表(对应 SQL GROUP BY) 数组元素为列名字符串,由适配器负责标识符转义


limit?

optional limit?: number;

Defined in: packages/rxdb/src/repository/query-options.interface.ts:68

获取数据量

Default

100

offset?

optional offset?: number;

Defined in: packages/rxdb/src/repository/query-options.interface.ts:74

分页偏离量

Default

0

orderBy?

optional orderBy?: OrderBy<W>[];

Defined in: packages/rxdb/src/repository/query-options.interface.ts:52


projection?

optional projection?: string[];

Defined in: packages/rxdb/src/repository/query-options.interface.ts:62

投影字段列表(对应 SQL 列选择) 指定需要返回的列名,缺省返回所有列(SELECT *)


where

where: U;

Defined in: packages/rxdb/src/repository/query-options.interface.ts:51