[JAVA-3669] Support $out to a different database Created: 24/Mar/20  Updated: 28/Oct/23  Resolved: 27/Apr/20

Status: Closed
Project: Java Driver
Component/s: Builders, Query Operations
Affects Version/s: None
Fix Version/s: 4.1.0

Type: New Feature Priority: Major - P3
Reporter: Esha Bhargava Assignee: John Stewart (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Epic Link: Java MongoDB 4.4 Support

 Description   

The $out aggregation stage now supports outputting to a different database. It still accepts the old form of

{$out: <collName>}

To use a different database, the new syntax is

{$out: {db: <dbName>, coll: <collName>}}



 Comments   
Comment by Githook User [ 27/Apr/20 ]

Author:

{'name': 'John Stewart', 'email': 'john.stewart@mongodb.com', 'username': 'jstewart-mongo'}

Message: Support $out to a different database

JAVA-3669
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/7381f900d1714e71a2b1b72810daecdf006bb285

Generated at Thu Feb 08 09:00:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.