mingo
Version:
MongoDB query language for in-memory objects
11 lines (10 loc) • 429 B
TypeScript
import { AccumulatorOperator } from "../../types";
/**
* Returns an array of all the unique values for the selected field among for each document in that group.
*
* @param {Array} collection The input array
* @param {AnyObject} expr The right-hand side expression value of the operator
* @param {Options} options The options to use for this operation
* @returns {*}
*/
export declare const $addToSet: AccumulatorOperator;