Limit constructor

Limit(
  1. int count
)

Creates $limit aggregation stage

count - a positive integer that specifies the maximum number of documents to pass along.

Implementation

Limit(int count) : super('limit', count);