Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12713

Docs for SERVER-40239: New stage alias: $replaceWith

      Description

      Description:

      Adds {$replaceWith: "$expression"} as an alias for {$replaceRoot: {newRoot: "$expression"}}.

      *note* from cr for $set, the various accumulators available in stages other than $group ( also include $expr and more generally wherever expressions are supported)*

      Engineering Ticket Description:

      Add $replaceWith as a shortcut for {$replaceRoot: {newRoot: expression}}.

      Scope of changes

      • redirects
      • 4.2 rel notes
      • new replaceWith page
      • Link to/for replaceRoot
      • agg toc pages
      • changestreams
      • 4.2-downgrades (since either before/after, should remove from view definitions)
      • accumulators

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              4 years, 47 weeks ago