UNPKG

mingo

Version:

MongoDB query language for in-memory objects

13 lines (12 loc) 434 B
import { PipelineOperator } from "../../types"; /** * Replaces the input document with the specified document. The operation replaces all existing fields in the input document, including the _id field. * * See {@link https://www.mongodb.com/docs/manual/reference/operator/aggregation/replaceWith/ usage}. * * @param collection * @param expr * @param options * @returns */ export declare const $replaceWith: PipelineOperator;