mingo
Version:
MongoDB query language for in-memory objects
12 lines (11 loc) • 472 B
TypeScript
import { Iterator } from "../../lazy";
import { AnyObject, Options } from "../../types";
/**
* Replaces a document with the specified embedded document or new one.
* The replacement document can be any valid expression that resolves to a document.
*
* See {@link https://docs.mongodb.com/manual/reference/operator/aggregation/replaceRoot/ usage}.
*/
export declare function $replaceRoot(coll: Iterator, expr: {
newRoot: AnyObject;
}, options: Options): Iterator;