Mongo trigger to write multiple collections to s3

I am new to Mongo triggers. I am using a trigger and $out to write a collection to s3. I would like to know if I can use a single trigger to write multiple collections to the same s3 bucket. Right now I’m using collection.aggregate(pipeline) which works with only one collection.

2 Likes