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

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

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.12
    • manual, Server
    • None

    Description

      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.)

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 4 weeks, 5 days ago