UNPKG

mingo

Version:

MongoDB query language for in-memory objects

18 lines (17 loc) 620 B
import type { PipelineOperator } from "../../types"; /** * Takes the documents returned by the aggregation pipeline and writes them to a specified collection. * * Unlike in MongoDB, this operator can appear in any position in the pipeline and is * useful for collecting intermediate results of an aggregation operation. * * Note: Object are deep cloned for output regardless of the processing mode. * * See {@link https://www.mongodb.com/docs/manual/reference/operator/aggregation/out/ usage}. * * @param collection * @param expr * @param options * @returns */ export declare const $out: PipelineOperator;