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