Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3669

Support $out to a different database

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.0
    • Affects Version/s: None
    • Component/s: Builders, Query Operations
    • None

      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>}}
      

            Assignee:
            john.stewart@mongodb.com John Stewart (Inactive)
            Reporter:
            esha.bhargava@mongodb.com Esha Bhargava
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: