The field name to become the new root
(replaceRootField: StringAdd).self
(replaceRootField: StringFormat).self
(replaceRootField: ArrowAssoc[ReplaceRootField]).x
(Since version 2.10.0) Use leftOfArrow
instead
(replaceRootField: Ensuring[ReplaceRootField]).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 field name to become the new root