Skip to main content

serializeDrizzle()

serializeDrizzle(node: ExpressionNode, serializers: DrizzleSerializerRegistry, ctx: DrizzleSerializeContext, options?: ValueProcessorOptions): unknown

Defined in: expr/src/utils/serializeDrizzle.ts:21

Recursively serializes an expression node to a Drizzle operand (Column, SQL fragment, or literal). field nodes resolve to columns[field]; parameter nodes emit the name as a string literal; value nodes emit the raw (number-coerced) literal (interpolated as a bound parameter by callers); func nodes delegate to the registered Drizzle serializer. Throws if a referenced column is missing.

Parameters​

ParameterType
nodeExpressionNode
serializersDrizzleSerializerRegistry
ctxDrizzleSerializeContext
options?ValueProcessorOptions

Returns​

unknown


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.