UNPKG

mingo

Version:

MongoDB query language for in-memory objects

12 lines (11 loc) 531 B
import { AccumulatorOperator, Any } from "../../types"; /** * Returns an aggregation of the bottom n elements within a group, according to the specified sort order. * If the group contains fewer than n elements, $bottomN returns all elements in the group. * * @param {Any[]} 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 $bottomN: AccumulatorOperator<Any[]>;