Replaces a document with the specified embedded document or new one. The replacement document can be any valid expression that resolves to a document.
https://docs.mongodb.com/manual/reference/operator/aggregation/replaceRoot/
Replaces a document with the specified embedded document or new one. The replacement document can be any valid expression that resolves to a document.
https://docs.mongodb.com/manual/reference/operator/aggregation/replaceRoot/