Skip to main content

RuleProcessor()

RuleProcessor: (rule: RuleType, options?: ValueProcessorOptions, meta?: { context: Record<string, any>; processedParams: Record<string, any> | any[]; }) => 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
mongodb (deprecated)defaultRuleProcessorMongoDB
mongodb_querydefaultRuleProcessorMongoDBQuery
celdefaultRuleProcessorCEL
speldefaultRuleProcessorSpEL
jsonlogicdefaultRuleProcessorJsonLogic
elasticsearchdefaultRuleProcessorElasticSearch
jsonatadefaultRuleProcessorJSONata

Parameters

ParameterType
ruleRuleType
options?ValueProcessorOptions
meta?{ context: Record<string, any>; processedParams: Record<string, any> | any[]; }
meta.context?Record<string, any>
meta.processedParams?Record<string, any> | any[]

Returns

any

Defined in

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


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.