Skip to main content

getExpressionRuleProcessorNL()

getExpressionRuleProcessorNL(serializers?: SQLSerializerRegistry): RuleProcessor

Defined in: expr/src/processors/getExpressionRuleProcessorNL.ts:38

Generates a rule processor with expression support for use by formatQuery with the "natural_language" format. Expression rules render their LHS (and any expression RHS/bounds) as an English noun phrase (e.g. the product of Price and Quantity is greater than 100). Pass custom serializers to add functions or override built-ins; they are merged over defaultNLSerializers. Rules without expressions, or with an unsupported operator, fall back to the stock processor.

Parameters

ParameterType
serializers?SQLSerializerRegistry

Returns

RuleProcessor


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.