mingo
Version:
MongoDB query language for in-memory objects
7 lines (6 loc) • 338 B
TypeScript
import { Any, Options } 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.
*/
export declare const $bottomN: (coll: Any[], expr: Any, options: Options) => unknown[];