[DOCS-12713] Docs for SERVER-40239: New stage alias: $replaceWith Created: 19/May/19  Updated: 13/Nov/23  Resolved: 04/Jun/19

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.1.12, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DOCS-12712 Docs for SERVER-40240: Add new $unset... Closed
Documented
documents SERVER-40239 New stage alias: $replaceWith Closed
Participants:
Days since reply: 4 years, 36 weeks, 1 day ago
Epic Link: DOCS: 4.2 Server/Tools

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



 Comments   
Comment by Githook User [ 04/Jun/19 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-12713: replaceWith
Branch: master
https://github.com/mongodb/docs/commit/18011acf95666219afdcdec40ab65de7bb39dba4

Generated at Thu Feb 08 08:05:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.