ReplaceWith constructor

ReplaceWith(
  1. 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);