Skip to main content

getExpressionParserMongoDB()

getExpressionParserMongoDB(customInverse?: MongoDBInverse, customMeta?: ExpressionFunctionMetaRegistry): MongoDBExpressionParser

Defined in: expr/src/parsers/getExpressionParserMongoDB.ts:33

Generates a getExpression handler for @react-querybuilder/core/parseMongoDB!parseMongoDB. Pass customInverse to add operators or override built-ins (merged over defaultMongoDBInverse), and customMeta to supply arity metadata for custom functions. The returned handler builds an ExpressionNode from a MongoDB aggregation-expression operand and auto-validates it, returning null (rule dropped) for unknown operators or arity mismatches — the import-side mirror of getExpressionRuleProcessorMongoDBQuery.

Parameters​

ParameterType
customInverse?MongoDBInverse
customMeta?ExpressionFunctionMetaRegistry

Returns​

MongoDBExpressionParser


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.