如何实现将 MongoDB中group分组后的结果,再存入到mongo数据库中????

2025-05-07 10:52:29
推荐回答(1个)
回答1:

collection.aggregate([
{
'$match': {}
},
{
'$group': {}
}
], {
out: 'OtherCollection'
})