mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 14:38:20 +08:00
The Aggregate class should expose a `count(countName)` method that adds a `$count` aggregator in the pipeline. Documented here: http://mongoosejs.com/docs/api.html#aggregate_Aggregate-count Code @5.0.15 referencing this method: https://github.com/Automattic/mongoose/blob/5.0.15/lib/aggregate.js#L379