-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Extended $out
syntax fails when using Aggregation.out(…).in("dbName")
#4969
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
Comments
thank you @ricardohsmello for bringing this up. Seems the
Guess we'll need to update to newer syntax. |
I think we should simply change the syntax from to to coll in |
The reason the extended syntax is never shown in any reference docs is that |
$out
syntax fails when using Aggregation.out(…).in("dbName")
Hi team,
I'm using Spring Boot 3.4.4 with Spring Data MongoDB 4.4.4, and I noticed an issue when using the $out aggregation stage together with .in("new_db"). The aggregation works perfectly if I don't include .in(), meaning it defaults to writing in the current database.
Reproduction
Running on MongoDB Atlas 8.0.9 (Cloud) gives:
Running on MongoDB AtlasLocalDev 8.0.5 (Docker)
Using the same code on the [MongoDB Atlas Local Docker image] gives:
Environment
I’m not sure if the $out stage is being constructed correctly under the hood when using .in("dbName"), but it seems to be missing expected fields for the newer MongoDB 8.x versions.
Please let me know if I can help with a sample project or further info. Thanks a lot!
The text was updated successfully, but these errors were encountered: