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

Support $out to a different database

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.0
    • None
    • Builders, Query Operations
    • None

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: