jsonLogicExpressionOperators
constjsonLogicExpressionOperators:Record<"abs"|"upper"|"lower"|"startsWith"|"endsWith",JsonLogicOperator>
Defined in: expr/src/jsonLogicOperators.ts:21
Runtime implementations for the non-stock operators emitted by defaultJsonLogicSerializers.
Keys match the operator names produced by the default abs/upper/lower serializers.
Example
import * as jsonLogic from 'json-logic-js';
import { jsonLogicExpressionOperators } from '@react-querybuilder/expr';
for (const [op, fn] of Object.entries(jsonLogicExpressionOperators)) {
jsonLogic.add_operation(op, fn);
}
caution
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.