Create or append a mongo aggregation stage
Usage
add_stage(x, ...)
# Default S3 method
add_stage(x, ...)
# S3 method for class 'mongopipe'
add_stage(x, type, ...)
Arguments
- x
Object of class mongo or mongo_pipe
- ...
query
- type
Name of the stage.
Value
Object of type mongopipe.