Ability to copy paste an entire pipeline as text and split it into stages of the builder UI
The pipeline builder is powerful for constructing an aggregation pipeline. However, it would be good to copy an entire pre-written pipeline into the aggregation builder as text and have it syntactically divide the text into the aggregation builder stages UI.
This will help make pipelines written previously and not saved on Compass easily modifiable over copying each stage manually into the builder UI, which is a tedious process for long pipelines.
-
Nitin commented
It is possible to get a pre-written pipeline into the aggregation pipeline builder within Compass, as demonstrated in the attached video.
-
AdminMassimiliano (Admin, MongoDB) commented
This is already possible. In the aggregation builder, you can click on the arrow next to the "+" button, select "Create new pipeline from text" and paste your pipeline into the dialog that appears (docs here: https://docs.mongodb.com/compass/current/import-pipeline-from-text)