interface LastN {
    $lastN: {
        input: any;
        n: any;
    };
}

Properties

Properties

$lastN: {
    input: any;
    n: any;
}

$lastN can be used as an aggregation accumulator or array operator. As an aggregation accumulator, it an aggregation of the last n elements within a group. As an array operator, it returns the specified number of elements from the end of an array.

Type declaration

  • input: any
  • n: any