Aggregate copy/paste like Mongo Compass
I find definitely more useful the copy/paste aggregate method offered by Mongo Compass.
Copy/Paste aggregate provide only the aggregation pipeline array that is definitely more usable than the piece of code.
My company switched to Studio 3T for the aggregate framework, but this is making hard to copy/paste the pipeline into the terminal or in other piece of code.
Hi Davide, we’re sorry to hear that you’re not completely satisfied with this. Can we ask if you have tried using Query Code (using the mongo shell output) in order to copy and paste the pipeline?
-
Davide Tantillo commented
Hi,
Copy/Paste aggregation pipeline option offered by Mongo Compass is superior.
In my company we use a lot the aggregate framework and we definitely find less usable the Copy/Paste method offered by Studio 3T.
In generale people are interested in copying the pipeline, not the 'db.getCollection' function.
Especially for pasting the pipeline this is a huge waste of time.Using the Query Code allows in an uncomfortable way to copy the pipeline only, but does not allow to paste it.
Right now I find very uncomfortable using the copy and paste button of your aggregate functionality.
I hope you will still consider to analyze how mongo compass allows to copy/paste pipelines because their way is definitely more usable.
Thanks,
Davide