ReplaceWith constructor
ReplaceWith(
- dynamic replacement
Creates $replaceWith
aggregation stage
The replacement
document can be any valid expression that resolves to a
document.
Implementation
ReplaceWith(replacement) : super('replaceWith', replacement);