Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-540

Support ability to merge pipeline output with existing collection

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • None

      Useful Info

      Lead:
      POCs:

      Summary:
      From the design document: We will extend the $out stage to have the following form:

      {$out: {
        mode: required, "replaceCollection" | "replaceDocuments" | "insertDocuments"
        to: required, name of the collection
        db: optional, defaults to the db of the aggregation
        uniqueKey: optional document of fields that identifies a document for replacement or merge: see below
         }
      }

      However, we will continue to accept the legacy syntax, which defaults to "replaceCollection" mode.

      Relevant Spec Changes:
      None.

            Assignee:
            Unassigned Unassigned
            Reporter:
            rathi.gnanasekaran Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: