Skip to main content

RuleProcessor()

RuleProcessor: (rule, options?, meta?) => any

Function to produce a result that formatQuery uses when processing a RuleType object.

See the default rule processor for each format to know what type to return.

FormatDefault rule processor
sqldefaultRuleProcessorSQL
parameterizeddefaultRuleProcessorParameterized
parameterized_nameddefaultRuleProcessorParameterized
mongodbdefaultRuleProcessorMongoDB
celdefaultRuleProcessorCEL
speldefaultRuleProcessorSpEL
jsonlogicdefaultRuleProcessorJsonLogic
elasticsearchdefaultRuleProcessorElasticSearch
jsonatadefaultRuleProcessorJSONata

Parameters

ParameterType
ruleRuleType
options?ValueProcessorOptions
meta?object
meta.processedParams?Record<string, any> | any[]

Returns

any

Defined in

packages/react-querybuilder/src/types/importExport.ts:249


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.