mingo
    Preparing search index...
    $replaceWith: PipelineOperator = ...

    Replaces the input document with the specified document. The operation replaces all existing fields in the input document, including the _id field.

    See usage.