mars icon indicating copy to clipboard operation
mars copied to clipboard

$out(聚合)不支持插入到外部数据库中

Open WhaleFalls0807 opened this issue 2 years ago • 0 comments

在指定out属性时,使用Out.to("")生成Out对象,不能指定数据库 db.getSiblingDB("test").books.aggregate( [ { $group : { _id : "$author", books: { $push: "$title" } } }, { $out : { db: "reporting", coll: "authors" } } ] )

WhaleFalls0807 avatar May 17 '22 11:05 WhaleFalls0807