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?{ processedParams: Record<string, any> | any[]; }
meta.processedParams?Record<string, any> | any[]

Returns

any

Defined in

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


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.