UNPKG

mingo

Version:

MongoDB query language for in-memory objects

7 lines (6 loc) 344 B
import type { AccumulatorOperator } from "../../types"; /** * Returns an aggregation of the first n elements within a group. The elements returned are meaningful only if in a specified sort order. * If the group contains fewer than n elements, $firstN returns all elements in the group. */ export declare const $firstN: AccumulatorOperator;