stage-validator
Validates a MongoDB aggregation pipeline stage.
Usage
The main module exposes two functions: accepts(stageStr)
and parse(stageStr)
.
accepts(stageStr)
The accepts(stageStr)
function takes a pipeline stage string and returns true
if the
string is a valid MongoDB pipeline stage, false
otherwise.
Example:
var accepts = accepts;var assert = ; assert;assert; assert;
Related
mongodb-query-parser
Validate and parse MongoDB queries and projectionsmongodb-language-model
Work with rich AST's of MongoDB queries@mongodb-js/compass-aggregations
MongoDB Compass UI Plugin for building and debugging aggregation pipelines.
License
Apache 2.0