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.
Format | Default rule processor |
---|---|
sql | defaultRuleProcessorSQL |
parameterized | defaultRuleProcessorParameterized |
parameterized_named | defaultRuleProcessorParameterized |
mongodb | defaultRuleProcessorMongoDB |
cel | defaultRuleProcessorCEL |
spel | defaultRuleProcessorSpEL |
jsonlogic | defaultRuleProcessorJsonLogic |
elasticsearch | defaultRuleProcessorElasticSearch |
jsonata | defaultRuleProcessorJSONata |
Parameters
Parameter | Type |
---|---|
rule | RuleType |
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.