跳到主要内容

getOperatorsForType()

function getOperatorsForType(type, operators?): OperatorDefinition[];

Defined in: packages/rxdb-model/dist/query-builder/models/operator.interface.d.ts:45

根据字段类型获取适用的操作符

Parameters​

ParameterTypeDescription
typePropertyType字段类型
operators?OperatorDefinition[]操作符定义列表(默认使用内置操作符 DEFAULT_OPERATORS)

Returns​

OperatorDefinition[]

适用于该字段类型的操作符数组