getOperatorsForType()
function getOperatorsForType(type, operators?): OperatorDefinition[];
Defined in: packages/rxdb-model/src/query-builder/models/operator.interface.ts:186
根据字段类型获取适用的操作符
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
type | PropertyType | undefined | 字段类型 |
operators | OperatorDefinition[] | DEFAULT_OPERATORS | 操作符定义列表(默认使用内置操作符 DEFAULT_OPERATORS) |
Returns
适用于该字段类型的操作符数组