Skip to main content

getExpressionRuleProcessorTanStackDB()

getExpressionRuleProcessorTanStackDB(serializers?: TanStackDbSerializerRegistry): RuleProcessor

Defined in: expr/src/processors/getExpressionRuleProcessorTanStackDB.ts:36

Generates a rule processor with expression support for use by formatQuery with the "tanstack_db" format. Expression rules compose TanStack DB expressions from ref columns (arithmetic via add/subtract/…, upper/lower). Requires the same context the stock processor needs: tanStackDbOperators, _tanstackDbRefs, and _tanstackDbPrimaryRef. Pass custom serializers to add functions or override built-ins; they are merged over defaultTanStackDbSerializers. Rules without expressions, missing context, or with an unsupported operator/function, fall back to the stock processor (or are omitted).

Parameters

ParameterType
serializers?TanStackDbSerializerRegistry

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.