Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WhaleFalls0807 opened this issue May 17, 2022 · 0 comments
Open

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

WhaleFalls0807 opened this issue May 17, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@WhaleFalls0807
Copy link
Collaborator

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

@HbnKing HbnKing added the enhancement New feature or request label May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants