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