UNPKG

mingo

Version:

MongoDB query language for in-memory objects

9 lines (8 loc) 279 B
import { Any, AnyObject, Options, SortSpec } from "../../types"; /** * Returns the top element within a group according to the specified sort order. */ export declare const $top: (coll: AnyObject[], expr: { sortBy: SortSpec; output: Any; }, options: Options) => Any[];