The new root object
(replaceRoot: StringAdd).self
(replaceRoot: StringFormat).self
(replaceRoot: ArrowAssoc[ReplaceRoot]).x
(Since version 2.10.0) Use leftOfArrow
instead
(replaceRoot: Ensuring[ReplaceRoot]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Promotes a specified document to the top level and replaces all other fields. The operation replaces all existing fields in the input document, including the _id field. https://docs.mongodb.com/manual/reference/operator/aggregation/replaceRoot
The new root object