$out

输出到集合

https://docs.mongodb.com/manual/reference/operator/aggregation/out/#example

db.books.aggregate( [
                      { $group : { _id : "$author", books: { $push: "$title" } } },
                      { $out : "authors" }
                  ] )