serializeMongoAgg()
serializeMongoAgg(
node:ExpressionNode,serializers:MongoAggSerializerRegistry,options?:ValueProcessorOptions):unknown
Defined in: expr/src/utils/serializeMongoAgg.ts:12
Recursively serializes an expression node to a MongoDB aggregation-expression value.
field nodes become the field-path string "$field"; parameter nodes emit the name as
a string literal; value nodes emit the raw (number-coerced) literal; func nodes
delegate to the registered aggregation serializer (an operator name wrapping the args in
{ [op]: args }, or an opts-first function).
Parameters
| Parameter | Type |
|---|---|
node | ExpressionNode |
serializers | MongoAggSerializerRegistry |
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.