Import Pipeline from Text
New in version 1.15.0
You can import aggregation pipelines from plain text into the Aggregation Pipeline Builder to easily modify and execute your pipelines. Importing a plain text aggregation pipeline shows how each stage of the pipeline affects the output, and illustrates the effects of modifying specific pipeline stages using the Pipeline Builder's Output panes.
Syntax
The imported pipeline must be in the
MongoDB query language
(i.e. the same syntax used as the pipeline
parameter of the
db.collection.aggregate() method). The imported
pipeline must be an array, even if there is only one stage in the
pipeline.
Procedure
Once you import your pipeline, you can add and modify individual stages and see the results reflected in the Output of each respective stage.